PHP Interview Question and Answers

66. What is file upload?
  File upload is Web page function which allows visitor to specify a file on the browser’s system and submit it to the Web server. This is a very useful function for many interactive Web sites.
 
Your Name Your Email-ID
Your Answer
67. Which are the best start and end tags to use?
  It is largely a matter of preference. For the sake of portability, the standard tags (<?php and ?>) are probably the safest choice. Short tags are enabled by default and have the virtue of brevity, but to promote portability, it might be safest to avoid them.
 
Your Name Your Email-ID
Your Answer
68. How would you determine the size of a file?
  The filesize() function returns a file's size in bytes.
 
Your Name Your Email-ID
Your Answer
69. How to retrieve the session id of the current session?
  Normally, you don’t need to know the session ID of the current session. But if you are interested to know the session ID created by the PHP engine, there are two ways to get it: Calling session() function. It will return the session ID value. Using built–in constant SID. It will contains a string of session ID name and value.
 
Your Name Your Email-ID
Your Answer
70. What is Apache’s configuration file typically called?
  The Apache configuration file is called httpd.conf.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415161718 Page 15 of 18