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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
koenk
Forum Newbie
Posts: 1
Joined: Thu Dec 07, 2006 6:05 am

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

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

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

Post 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
User avatar
gonds
Forum Newbie
Posts: 7
Joined: Wed Dec 20, 2006 3:28 am
Location: Bandung, Indonesia
Contact:

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

Post 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:
Post Reply