|
Posted by Kimmo Laine on 02/27/06 09:00
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:odKdnQnIM4Iv4WLenZ2dnUVZ_s2dnZ2d@comcast.com...
> 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.
Yes, you are correct. I *am* using require rather than include on purpouse
exactly for this reason.
--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviφ
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
[Back to original message]
|