Re: include vs require
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: include vs require | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13693@lists.php.net to get a copy of this message | ||
On Sun, 23 Feb 2003, Mika Tuupola wrote:
> On Sun, 23 Feb 2003, Fabien MARTY wrote:
>
> > Note the use of include_once AND CERTAINLY NOT REQUIRE_ONCE !!!
>
> Note that after 4.0.2 include and require are identical
> except the way how they handle failure. So using include
> in conditional blocks does not seem to aply anymore.
>
> http://www.php.net/manual/en/function.require.php
Note also that include/require are faster than their
include_once/require_once counterparts, so if you are pretty sure you
won't be including a file multiple times by mistake, just use the
include/require version.
-Rasmus