On Fri, 26 Oct 2001 20:54:00 -0400 impersonator of [EMAIL PROTECTED]
(Gerard Onorato) planted &I saw in php.general:

>Another solution I have used when I have to do conditional includes which
>may cause the same page to be included twice....
Unfortunately, you can't include FUNCTION() conditionaly (well, you can,
but then you can't use it out of this if():). Why only such dumn
restriction, PHP developers?
>At the top of the code to be included (the separate file) put something
>if ($theFileAlreadyInclude != 1) {
Right. That what i do too, but you include _code_ (whithout functions:()
in that case..

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to