Page 1 of 1

When PHP runs as ISAPI, wrong values for $_SERVER-vars

Posted: Thu Dec 07, 2006 6:17 am
by koenk
When I setup PHP 4.3.11 on IIS 6.0 to run as ISAPI, phpinfo() does not return the filename for the PHP Variable _SERVER["PATH_TRANSLATED"].

The variable PATH_TRANSLATED in section "ISAPI", returns D:\Web Sites\domain\phpinfo.php

The variable _SERVER["PATH_TRANSLATED"] in section "PHP Variables", returns D:\\Web Sites\\domain

When I setup PHP to run as CGI, the variable _SERVER["PATH_TRANSLATED"] in section "PHP Variables" returns the correct value.

As a result, some PHP-scripts do not work when run as iSAPI.

How can I solve this?

Re: When PHP runs as ISAPI, wrong values for $_SERVER-vars

Posted: Thu Dec 07, 2006 6:23 am
by volka
Haven't heard of that problem but
koenk wrote:When I setup PHP 4.3.11
did you try a more recent version? The current versions are 4.4.4 and 5.2.0, see http://www.php.net/downloads.php

Re: When PHP runs as ISAPI, wrong values for $_SERVER-vars

Posted: Fri Dec 22, 2006 3:28 am
by gonds
koenk wrote:When I setup PHP 4.3.11 on IIS 6.0
as i knew in php executeble instalation file phpxx.php...
it give u adventages when you install for IIS server
one of them is auto configure for IIS 8)
volka wrote:did you try a more recent version? The current versions are 4.4.4 and 5.2.0, see http://www.php.net/downloads.php
hmmm i agree with volka,
why don't u try the lettest version? :idea: :wink: