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

>Hi,
>
>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
>like:
>
>if ($theFileAlreadyInclude != 1) {
>
Right. That what i do too, but you include _code_ (whithout functions:()
in that case..
--
i

-- 
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