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
List some sorting functions in php?
What is env in laravel?
How to generate a character from an ascii value?
How is it possible to know the number of rows returned in result set?
Explain Whitespace Characters?
Write a hello world program using variable?
What is the php function that removes the first element of the array and returns it?
What is the difference between apache vs niginx?
What is xss and csrf?
Explain the difference between static and dynamic websites?
What are variables in research examples?
What is the difference between client-side and server-side programming?
What is the difference between php and core php?
What is escape data in php?
How to write php function in html onclick?