What Is The Difference Between Include And Require Commands In Php?
Php Include And Require Commands
Collapse
X
-
Tags: None
-
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. -
require will produce a fatal error and stop the script
include will only produce a warning and the script will continueComment
-
Comment