Question from newbie
Moderator: General Moderators
Re: Question from newbie
include() won't stop the code execution if the file parameter does not exist, while require() will stop it with an error
There are 10 types of people in this world, those who understand binary and those who don't
-
thinsoldier
- Forum Contributor
- Posts: 367
- Joined: Fri Jul 20, 2007 11:29 am
- Contact:
Re: Question from newbie
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.
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.
Warning: I have no idea what I'm talking about.