Re: Coding Standards
| From: | Cipriano Groenendal | Date: | Mon, 28 Jun 2004 11:09:43 +0000 |
| Subject: | Re: Coding Standards | ||
| References: | 1 2 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-4527@lists.php.net to get a copy of this message | ||
> On Sun Jun 27, 2004 at 10:4751PM +1000, Aidan Lister wrote:
> > The page on using include/require needs to be explained better. Require
> > should be used in all cases unless the script will run if the include
fails
> > (ie optional include).
> I'm under the impression that include_once and require_once have become
> identical in one of the 4.x releases of PHP.
There originally was some difference between include and require, about when
the requested file'd be included, or something like that.
The only difference right now, is that a failed include(_once)-call raises
an E_WARNING, and a failed require(_once)-call raises an E_DIE, or however
those are called in PHP again.
Cipri