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
What is difference between static and constant in php?
How long is csrf token?
What is the most common http method?
Is set in php?
What is call by reference in php?
Name some of the popular frameworks in php.
How to track no of user logged in?
Why php is used in html?
What library is used for pdf in php?
What is the difference between $name and $$name?
What is a collection in php?
Tell me is it possible to remove the html tags from data?
Will php die?
Define soundex()?
What is difference between isset and empty in php?