Posted by Jerry Stuckle on 02/24/06 23:35
ECRIA Public Mail Buffer wrote:
>>...when I'm including dependet classess, I use require_once to avoid
>>multiple declarations - yet they happen...
>
>
> use include_once(); rather than require_once();
>
> ECRIA
> http://www.ecria.com
>
>
No, require_once will work just fine. The only difference is you get a
fatal error if require_once fails, and only a warning if include_once fails.
In this case I would suspect he wants it to fail if the file can't be
found, so require_once would be appropriate.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|