Both require() and include() are identical in every way except upon
failure, require will shout a Fatal Error while include provides a
Warning.
Fatal warnings don't allow the code to continue, Warnings don't have such
an affect.
The current include/require docs reflect the status of pre 4.0.2
So both include() and require() *are* subject to conditional statements
in the code? Guess I missed that.
Thanks.
-Steve
On Tuesday, October 23, 2001, at 01:00 AM, Rasmus Lerdorf wrote:
> That's outdated. The only difference today is that if a file can't be
> included/required for some reas
That's outdated. The only difference today is that if a file can't be
included/required for some reason it is a fatal error with require and a
warning with include.
-Rasmus
On Tue, 23 Oct 2001, Jason G. wrote:
> From the manual:
>
> Unlike include(), require() will always read in the target f
From the manual:
Unlike include(), require() will always read in the target file, even if
the line it's on never executes. If you want to conditionally include a
file, use include(). The conditional statement won't affect the require().
However, if the line on which the require() occurs is no
4 matches
Mail list logo