|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-11-08 16:24 UTC] fmoreira at imediata dot pt
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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 12:00:01 2025 UTC |
Hi, I am experiencing the same issue on IIS 6 and PHP 5.2.5. This is not limited to the "include" or "include_once", as i was able to reproduce it with this simple script : <?php define('MY_CONSTANT', 1); exit; ?> This produces the following error : Notice: Constant MY_CONSTANT already defined in [...]\index.php on line 2 There is no auto_prepend nor auto_append file configured. Since it occurs on a client's platform, i am afraid that i can't change anything on this server nor show you the whole phpinfo as it is confidential, but here is the beginning : PHP Version 5.2.5 System Windows NT EUROSUGAR 5.2 build 3790 Build Date Nov 8 2007 23:18:08 Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" Server API ISAPI Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File C:\WINDOWS\php.ini PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety enabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams php, file, data, http, ftp, compress.zlib Registered Stream Socket Transports tcp, udp Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* Hope this helps...