Re: Re: include_once vs require_once
| From: | Philip Olson | Date: | Wed, 01 Aug 2001 02:56:47 +0000 |
| Subject: | Re: Re: include_once vs require_once | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60562@lists.php.net to get a copy of this message | ||
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,
Philip
On Tue, 31 Jul 2001, CC Zona wrote:
> In article <B78CC02E.F4D9%php-l@bakednotfried.com>,
> php-l@bakednotfried.com (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?
>
> Rasmus has stated before that there is no longer any difference between
> include_once() vs. require_once(), or include() vs. require(). I forget
> which version that became the case, but if you are using a current version
> of PHP the above two lines should produce identical results.
>
> --
> CC
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>