What are the differences between require and include,
include_once?
Answer Posted / sri harsha
include();--> include the file, but in case of file missing
throws a warning and continues execution of code of next line.
require();--> require also includes the file but in case of
file missing throws an fatal error and stop the execution of
the code of next line.
include_once();-->if same file was included first it will
not include the file another time.
| Is This Answer Correct ? | 46 Yes | 1 No |
Post New Answer View All Answers
How is it possible to set an infinite execution time for php script?
Explain array_uintersect()?
Tell me what is mean by an associative array?
Do you know what are traits?
How stop the execution of a php scrip?
What is the difference between get & post ?
How would you open a directory for reading in php?
How to protect special characters in query string?
What is api laravel?
When do you use define() and when do you use const. What are the main differences between those two?
What is the difference server side and browser side validation?
How do I find environment variables?
What is the functionality of md5 function in php?
Is gender a dependent variable?
What is $globals php?