Whats the difference between include() and require()?
Answer Posted / kathiresan n
You can insert the content of a file into a PHP file before
the server executes it, with the include() or require()
function.
The two functions are identical in every way, except how
they handle errors.
The include() function generates a warning but the script
will continue execution while the require() function
generates a fatal error and the script execution will stop
after the error.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What are escaping characters? Explain with an example?
How does php and apache work?
How to upload file in php?
Do loops php?
Are php short tags acceptable to use?
Where can I find php ini file?
How to invoke a user function?
What is difference between static and constant?
What is the function mysql_pconnect() usefull for?
What is a controller in programming?
Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?
How do I know my xampp version?
what the new feature add in php 7.2?
What is the use of header() function in php?
What is echo and print in php?