Technical Interview Questions

Recent Question and Answers

....! There are a few things you should be aware of: 1. Since cookies are used to record information about your activities on a particular domain, they can only be read by the domain that created them 2. A single domain cannot set more than twenty cookies, and each cookie is limited to a maximum size of 4 KB 3. A cookie usually possesses six attributes, of which only the first is mandatory. Here they are: * name: the name of the cookie * value: the value of the cookie function isbn10_to_13($isbnold){ if (strlen($isbnold) != 10){ // Make sure we have a 10 digit string to startreturn 'Invalid ISBN-10, must be 10 digits';} // prefix with 978 and drop old checksum (last digit)$isbn = '978'.substr($isbnold,0,9); for ($i = 0; $i <= 12; $i++){ // For each digit if new isbn$weight = ($i%2 == 0)? 1 : 3; // Alternate between 1's and 3's$check_sum_total = $check_sum_total + ($isbn{$i} * $weight); // multiply each digit by 1 or 3 and add to $checksumtotal} $....!
In computing, phishing is a form of criminal activity using social engineering techniques. It is characterized by attempts to fraudulently acquire sensitive information, such as passwords and credit card details, by masquerading as a trustworthy person or business in an apparently official electronic communication. Phishing is typically carried out using email or an instant message. The term phishing derives from password harvesting and the use of increasingly sophisticated lures to "fish" for users' financial information and passwords. 1. fget(); 2. file_open(); 3. fopen(); 4. open_file(); ANS:fopen(); ....! Using DATEDIFF() SELECT DATEDIFF(NOW(),'2007-07-15'); ....!
<?php echo 'Hello World'; ?> ....! $s=”hihihi”; echo $s. “ welcome”.$s; a) syntax error b) runtime error c) all of the above d) hihihi welcome hihihi ANS: d ....! Ans: MySQL SET function can take zero or more values, but at the maximum it can take 64 values. ....! <?php echo "www.w3answers.com"; if ((string)'-1') { print 'ouch'; } else { print 'echo'; } ?> a. ouch b. echo c. none d. Parse error ANS: a ....! The Session Manager session support allows multiple server instances to share a common pool of sessions, known as a session cluster Session clustering setting up methods : #1)First methods, is to have a NFS shared where session will be store. Setting this is quite easy, just a little modification on php.ini file to change the “session.save_path ? directive to point to the NFS share. The main problem with NFS is on high traffic, NFS share is really slow. So synchronisation and data corruption can arrive and ....! According to PHP official manual   It is used to converts a string to an array. If the optional split_length parameter is specified, the returned array will be broken down into chunks with each being split_length in length, otherwise each chunk will be one character in length. FALSE is returned if split_length is less than 1 MySQL Engines MyISAM HEAP MEMORY MERGE MRG_MYISAM ISAM MRG_ISAM InnoDB INNOBASE BDB BERKELEYDB NDBCLUSTER NDB EXAMPLE ARCHIVE CSV   ....! session_save_path -- Get and/or set the current session save path session_is_registered -- Find out whether a global variable is registered in a session session_unset -- Free all session variables session_cache_expire -- Return current cache expire session_cache_limiter -- Get and/or set the current cache limiter session_commit -- Alias of session_write_close() session_decode -- Decodes session data from a string session_destroy -- Destroys all data registered to a sessi....! You can download apache2triad from http://sourceforge.net/projects/apache2triad/ Its a single setup file for --------------------------- Apache2 , MySQL , PostgreSQL , OpenSSL , Xmail , SlimFTPd Software developing triad of : PHP , Perl and Python + Apache2TriadCP , PHPmyadmin , PHPPgAdmin , AWStats , UebiMiau , PHPXMail , PHPSFTPd. All latest stables , all manuals Use t....!

You can download apache2triad from
http://sourceforge.net/projects/apache2triad/

Its a single setup file for
---------------------------
Apache2 , MySQL , PostgreSQL , OpenSSL , Xmail , SlimFTPd Software developing triad of : PHP , Perl and Python + Apache2TriadCP , PHPmyadmin , PHPPgAdmin , AWStats , UebiMiau , PHPXMail , PHPSFTPd. All latest stables , all manuals

Use t....!