Perhaps the manual should be made to reflect this since, my
understanding came from the online version of the manual.
Sterling
Philip Olson wrote:
> Yes, this is essentially true. Zeev posted this to the list awhile ago,
> see the following :
>
> http://www.faqts.com/knowledge_base/view.ph
Yes, this is essentially true. Zeev posted this to the list awhile ago,
see the following :
http://www.faqts.com/knowledge_base/view.phtml/aid/6/
Essentially the difference now is the type of error that's produced, one
being a warning (include) while the other being FATAL! (require).
Regards
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Mike Cullerton) wrote:
> so the difference is _when_ they happen.
>
> ok, another question then.
>
> if my script includes the line
> require_once($file);
>
> and $file contains the line
> include_once($other_file);
>
> what happens then?
cool,
so the difference is _when_ they happen.
ok, another question then.
if my script includes the line
require_once($file);
and $file contains the line
include_once($other_file);
what happens then?
:)
thanks,
mike
on 7/31/01 6:57 PM, Andrew Sterling Hanenkamp at [EMAIL PROTECTED]
wrote
Did you look at the difference between include() and require()?
Basically, as I understand it, require() and require_once() are replaced
during parsing--before code execution. And include() and include_once()
are replaced during code execution. Thus, a required file is always
imported into the
5 matches
Mail list logo