Re: Re: Error: Can't redeclare already declared function (PHP 3.0.15)
| From: | (~~~i LeoNid ~~) | Date: | Sat, 27 Oct 2001 07:33:32 +0000 |
| Subject: | Re: Re: Error: Can't redeclare already declared function (PHP 3.0.15) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72549@lists.php.net to get a copy of this message | ||
On Fri, 26 Oct 2001 20:54:00 -0400 impersonator of phplist@desktoplive.com
(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