Re: [PHP] Re: require & include

2001-10-23 Thread Philip Olson
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

Re: [PHP] Re: require & include

2001-10-23 Thread Steve Cayford
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

Re: [PHP] Re: require & include

2001-10-22 Thread Rasmus Lerdorf
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

Re: [PHP] Re: require & include

2001-10-22 Thread Jason G.
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

[PHP] Re: require & include

2001-10-22 Thread Yasuo Ohgaki
Jtjohnston wrote: > Coverting from perl ... > What's the differencw between require and include? Where, when, why? > I forgot from which version, but current PHP's require/include works the same way except - require() raise fatal error, if it can't find file - include() raise warning, if it