Sr. PHP Programmer Question:

What's the difference between the include() and require() functions?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

they both include a specific file but on require the process exits with a fatal error if the file can't be included, while include statement may still pass and jump to the next step in the execution.


Previous QuestionNext Question
How ereg() function works?How will you access the uploaded file in PHP?