phprockers-logo

What is the difference between require() and include() in PHP?

if you require() a file that can't be loaded,if it isn't there, then it generates a fatal error which will halt the execution of the page completely.Then no more output will be generated. 
if you include() a file that can't be loaded, if it isn't there, then it generates a warning error and continue building the page.

0 comments:

Post a Comment