Hey ppl,
I'm having problem with a fresh installation of PHP 5.2.6 on a Win2003 machine using IIS 6.
The pages i'm trying to display runs successfully on a Win2003 machine using PHP 5.2.0 also using IIS 6. Both run PHP as an ISAPI module.
The error i get is:
Fatal error: Cannot redeclare myfunction() (previously declared in C:\web\wwwpub\mysite\mypage.php:26) in C:\web\wwwpub\mysite\mypage.php on line 30
In the page the function starts on line 26 and is closed at line 30. The page is included into index.php, where the error occurs.
If i restart IIS the page loads successfully, but when i refresh the page i get the error. This makes me think this is a cache or session data related problem.
I remember coming across this error earlier, and i believe it had something todo with FORCE_REDIRECT of whatever. I think i fixed it by setting the doc_root to the path of the webpage scripts. But every conceivable change i have made in php.ini regarding redirect or doc_root have no effect.
The phpinfo() output of the different Win2003 machines are totally the same, disregarding the extensions.
Does anybody have an idea where the problem lies? Is is the php.ini config, include issues or IIS config?