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
Which is the correct way to check if a session has already been started ?
Describe PHP error and logging information?
Is uploaded file php?
How to terminate the execution of a script in PHP?
What is difference between required and include in php?
Can we set session value in javascript?
What is oops php?
Where is session value stored?
What is lamp in php?
Php code to find whether a number armstrong or not?
Tell me what does the scope of variables means?
Tell me how can we determine whether a php variable is an instantiated object of a certain class?
Tell me is it possible to remove the html tags from data?
Are php short tags acceptable to use?
What is final class and final method in php?