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 do I display php errors?
How does php session work?
How to create a mysql connection in php?
Which function is used in php to search a particular value in an array?
What is a stored procedure in mysql?
Can we extend two classes in php?
What does $_ post mean in php?
What are new features in php 7?
Is php open source?
Does php have a future?
Differences between get, post and request methods ?
Can age be a variable?
Do you know how to declare an array in php?
What do the initials of php stand for?
Explain me differences between get and post methods?