Core PHP interview questions

373 questions. Tap “Show answer” to check yourself.

Advertisement
  1. How can we destroy the session, how can we unset the variable of a session?

  2. How can we take a backup of a mysql table and how can we restore it. ?

  3. How can we optimize or increase the speed of a mysql select query?

  4. What is the maximum size of a file that can be uploaded using PHP and how can we change this?

  5. How can we increase the execution time of a PHP script?

  6. How can we get the properties (size, type, width, height) of an image using PHP image functions?

  7. How can we convert the time zones using PHP?

  8. What is the purpose of the following files having extensions 1) .frm 2) .myd 3) .myi? What do these files contain?

  9. How can we find the number of rows in a result set using PHP?

  10. What are the advantages and disadvantages of Cascading Style Sheets?

  11. What is the functionality of the function html entities?

  12. How can we get second of the current time using date function?

  13. Advertisement
  14. How can I retrieve values from one database server and store them in other database server using PHP?

  15. How can I make a script that can be bilanguage (supports English, German)?

  16. What is the PHP predefined variable that tells the What types of images that PHP supports?

  17. How can I know that a variable is a number or not using a JavaScript?

  18. List out some tools through which we can draw E-R diagrams for mysql?

  19. How many ways we can pass the variable through the navigation between the pages?

  20. What is the difference between ereg_replace() and eregi_replace()?

  21. What are the differences between PHP 3 and PHP 4 and PHP 5?

  22. What are the features and advantages of object-oriented programming?

  23. What are the differences between procedure-oriented languages and object-oriented languages?

  24. What is the use of friend function?

  25. What are the differences between public, private, protected, static, transient, final and volatile?

  26. Advertisement
  27. What are the reasons for selecting lamp (linux, apache, mysql, PHP) instead of combination of other software programmes, servers and operating systems?

  28. How can we encrypt and decrypt a data present in a mysql table using mysql?

  29. Draw the architecture of Zend engine?

  30. What are the current versions of apache, PHP, and mysql?

  31. Name the Functions in IMAP, POP3 AND LDAP?

  32. Suppose your Zend engine supports the mode ?> Then how can u configure your PHP Zend engine to support mode ?

Advertisement