Seairth Jacobs wrote:
> I came accross the following IIS4/5 Metabase setting:
> 
> AllowPathInfoForScriptMappings
> 
> MS claims that this forces PATH_INFO and PATH_TRANSLATED to act
> according to the CGI specification, however this setting seems to
> have made no difference at all for me.  I am using the IIS5 on W2K
> Pro (not Server), so this may not be an available option since this
> version of IIS is somewhat limited (though MS does not mention this).
>  
> The MS KB is:
> 
> http://support.microsoft.com/default.aspx?scid=kb;en-us;q184320
> 
... and states, it's for IIS 4 only.

We solved the problem like this:

if (!empty($PATH_INFO)) {
 $Actual_Path=$PATH_INFO;
} else {
 $Actual_Path=$SCRIPT_NAME;
}
$baseDir=substr($Actual_Path,1,(strpos($Actual_Path,"/",1)-1));

This works at least in Win32 on Apache and IIS with CGI and SAPI.

Christoph


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to