55 PHP Interview Questions |
While different interviewers may ask distinctive questions, it always helps to be prepared for severe grilling. So we have to drawn up a list of frequently asked 55 php interview questions. Read all the questions and prepare answers dotted with examples for success in the job interview. - What is PHP?
- What is a Session?
- What is meant by PEAR in php?
- How can we know the number of days between two given dates using PHP?
- What is the difference between $message and $$message?
- What does a special set of tags do in PHP?
- What is a Persistent Cookie?
- How can we repair a MySQL table?
- What are the differences between require and include, include_once?
- What is meant by urlencode and urldecode?
- How do you define a constant?
- What is the difference between mysql_fetch_object and mysql_fetch_array?
- How To Get the Uploaded File Information in the Receiving Script?
- How can i execute a PHP script using command line?
- Would i use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?
- How To Create a Table?
- How can we encrypt the username and password using PHP?
- What is the functionality of the functions STRSTR() and STRISTR()?
- How To Protect Special Characters in Query String?
- What are the differences between DROP a table and TRUNCATE a table?
- WHAT ARE THE DIFFERENT TYPES OF ERRORS IN PHP?
- What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods?
- What is the difference between the functions unlink and unset?
- How can we register the variables into a session?
- How can we create a database using PHP and mysql?
- How many ways we can retrieve the date in result set of mysql using php?
- What is the difference between htmlentities() and htmlspecialchars()?
- So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
- How can we destroy the session, how can we unset the variable of a session?
- How many values can the SET function of MySQL take?
- How many ways we can we find the current date using MySQL?
- What is meant by MIME?
- How can we know that a session is started or not?
- What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
- What is the difference between PHP4 and PHP5?
- How to retrieve values from one database server and store them in other database server using PHP?
- What are the functions for IMAP?
- How can we increase the execution time of a php script?
- How to set cookies?
- How to reset/destroy a cookie?
- What are the current versions of Apache, PHP, and MySQL?
- What are the features and advantages of OBJECT ORIENTED PROGRAMMING?
- What are the reasons for selecting LAMP (Linux, Apache, MySQL, Php) instead of combination of other software programs, servers and operating systems?
- What is the use of friend function?
- What are the difference between abstract class and interface?
- What are the advantages of stored procedures, triggers, indexes?
- What is maximum size of a database in mysql?
- What type of inheritance that php supports?
- How to increase the performance of MySQL select query?
- How to use the COM components in php?
- How to set a cron and how can I execute it in Unix, Linux, and windows?
- How many ways I can redirect a PHP page?
- How to store the uploaded file to the final location?
- Explain about Type Juggling in php?
- How can I embed a java programme in php file and what changes have to be done in php.ini file?
|