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
Which of the delimiter is ASP style?
What PHP stands for?
What is overloading in php?
Explain setcookie() function in php?
What is user defined function in php?
What is difference Between PHP 5 and 7?
Difference between get and post method.
Which php framework is in demand?
Can constructor be private in php?
What is difference between count or sizeof function in php?
Is php the same as html?
Tools used for drawing er diagrams?
How cookies are transported from servers to browsers?
How to create a session? How to set a value in session? How to remove data from a session?
What is a namespace in php?