Re: include_once() and require_once() in function
- From: r0g <aioe.org@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 29 Sep 2008 13:22:46 -0400
Andrew G. Koptyaev wrote:
Is I can use include_once() or require_once() in function or only include()?
I tend to use require_once for most things.
The 'require' part causes your script to stop executing with a fatal
error if it can't include your file, which is generally what you would want.
The 'once' part means if a script has already been included further back
in time it won't be included again (as this could cause all manner of
problems).
Roger Heathcote.
.
- References:
- include_once() and require_once() in function
- From: Andrew G. Koptyaev
- include_once() and require_once() in function
- Prev by Date: Re: Item changelogs and rollback
- Next by Date: Manually setting session ids
- Previous by thread: Re: include_once() and require_once() in function
- Next by thread: Re: include_once() and require_once() in function
- Index(es):
Relevant Pages
|