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 php function will attach one file to another?
What is the scope of a variable defined outside a function?
What is the use of isset() in php?
Tell me how to strip whitespace (or other characters) from the beginning and end of a string?
Tell me how comfortable are you with writing html entirely by hand?
What is a path Traversal?
What is return in php function?
How to parse configuration file in php?
How to get number of elements in an array?
How do you put a space in html?
What was the old name of php?
What distinguishes php from something like client side java script?
Tell me how can we connect to a mysql database from a php script?
Are php variables global?
What is constructors and destructors?