Page 1 of 1

Re: Question from newbie

Posted: Thu Feb 01, 2018 1:50 pm
by VladSun
include() won't stop the code execution if the file parameter does not exist, while require() will stop it with an error

Re: Question from newbie

Posted: Sun Feb 11, 2018 7:56 pm
by thinsoldier
You could easily test this yourself.

The answer is yes. Everything before the "require()" will run and when the require line tries to run and cannot find the file it will stop the code at that line with both a warning and a fatal error.