Tuesday, August 25, 2009

PHP Interview Questions

Some of PHP Interview Question I encounter while in interview.


PHP Interview Questions:
  1. What is web1.0,web2.0?
  2. Answer : Web1.0 is like a dictionary where we get the information we cant edit or share the things , Where as web 2.0 is the new version used world wide using web2.0 we can share views(Social Networking),videos(Youtube),images(flickr).
  3. List Some String Functions
  4. Answer : addslashes() - Returns a string with backslash in front of the predefined characters. echo() - Output a string. explode() - Break a string in to an array. implode() - Return a string from the elements of an array ltrim() - Remove the white space from the left of the given string. print() - Output a string. str_split() - Split a string it a array. strlen() - Return the length of the string.
  5. Write a HTML form tag for Uploading a file
  6. Answer : form action="upload_file.php" method="post" enctype="multipart/form-data"
  7. Difference Between mysql_connect and mysql_pconnect
  8. Answer : mysql_connect Open a connection to a MySQL Server mysql_pconnect Open a persistent connection to a MySQL server, Persistent connections are links that do not close when the execution of your script ends.
  9. What is JQuery
  10. Answer : Jquery is a lightweight Javscript Library that helps interaction between javascript and HTML
  11. Some Features of JQuery
  12. Answer : DOM element selections using the cross-browser open source selector engine Sizzle,DOM traversal and modification,Events,CSS manipulation,Effects and animations,Ajax,JavaScript Plugins

0 comments: