Re: PHP 4.0 Bug #7701: loads include files twice
| From: | Ignacio Vazquez-Abrams | Date: | Wed, 08 Nov 2000 15:34:07 +0000 |
| Subject: | Re: PHP 4.0 Bug #7701: loads include files twice | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-37437@lists.php.net to get a copy of this message | ||
On 8 Nov 2000 fmoreira@imediata.pt wrote:
> From: fmoreira@imediata.pt
> Operating system: W2k IIS5
> PHP version: 4.0.3pl1
> PHP Bug Type: IIS related
> Bug description: loads include files twice
>
> sometimes... I can't especify how or the circumstances that make it happen.
>
> when I load the PHP script (that has an 'include' statement) it loads twice the
> include file...
>
> mod0.php:
>
> "if(!$fs)
> include("funcoes.php");"
>
> funcoes.php:
>
> "
> $fs=1;
> ..."
>
> the $fs variable was a way I used to check if the problem is in the script or in the script
> engine...
>
> IF THE BROWSER RELOADS THE PAGE, IT OPENS CORRECTLY...
> IF THE BROWSER RELOADS THE PAGE AGAIN, HAPPENS THE ERROR AGAIN...
>
> I'm using the phpisapi.dll with no extensions
>
Does using include_once() work?
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>