View Complete Thread
  • PHP realpath() problem

    Dec 16, 2008 05:48 PM|david.s|LINK

    I've been trying to migrate a MediaWiki installation to a w2k8 IIS7 server and been encountering headaches. I've eventually tracked it to an issue with the PHP function realpath().

    The following PHP code demonstrates the problem -

    echo realpath( '.' );

    On IIS6 using php5isapi.dll this reports the correct path, eg -


    On IIS7 with FastCgi using c:\php\php-cgi.exe this reports -


    On IIS7 with php5isapi.dll this reports -


    Clearly the IIS7 responses are not what is wanted! Both servers are using PHP 5.6.8 and all MS updates. I've been unable to find any differences in php.ini settings that might make a difference, and no idea where to look in IIS7.

    Any help greatly appreciated!

    PHP fascgi