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 is php resource type?
What is the use of ajax in php?
What is meant by public, private, protected, static and final scopes?
Is server side a session?
How do I find environment variables?
What is the use of trim function in php?
What is session in c#?
What are some of the advanced features of php?
What does it mean when it says the csrf token is invalid?
Are php sessions cookies?
What is the difference between php traits vs interfaces?
When use javascript vs php?
What are objects in php?
How can we enable error reporting in php?
What is cookie and session in php?