Monday, May 31, 2010

PHP - Interview questions

1. What does a special set of tags do in PHP?

Ans:  The output is displayed directly to the browser.


2. What’s the difference between include and require?

Ans: It’s how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.