Php Include And Require Commands
Collapse
X
-
Guest repliedBoth are used to include a file in other file but there is a little bit difference in the case of include if the file doesn't exist it will shoot a warning while in require case it will give you a fatal error.Leave a comment:
-
require will produce a fatal error and stop the script
include will only produce a warning and the script will continueLeave a comment:
-
The key difference between require() and include() is that if you require() a file that can't be loaded (eg if it isn't there) then it generates a fatal error which will halt the execution of the page completely, and no more output will be generated.Leave a comment:
-
Php Include And Require Commands
What Is The Difference Between Include And Require Commands In Php?Tags: None
Leave a comment: