Re: RC5 report with Win32 and Apache: ok except $PHP_SELF

From: Date: Thu, 14 Dec 2000 11:03:50 +0000
Subject: Re: RC5 report with Win32 and Apache: ok except $PHP_SELF
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-1860@lists.php.net to get a copy of this message
[...] > > and the same happens, phpinfo() loaded from > > http://192.168.0.1/php/info.php > > shows PHP_SELF /php4/php.exe/php/info.php > > > > PS: I was properly changing php4ts.dll every time I switched versions. > > When working in CGI mode $PATH_INFO should be used rather than $PHP_SELF > which in cgi mode is reporting the correct path, this isnt a bug but the way > that apache (or any other CGI system AFAIK) reports the script name. All right, I'm used to compiling PHP myself with --enable-discard-path and using it on Unix with suEXEC. As I don't use PHP and Windows much, I thought precompiled binaries behaved the same way. I wrote a Webmail client that uses $PHP_SELF and wanted to be sure it would work the same way on Win32 in case some people would want to. I thought $PHP_SELF would be transparent through all SAPI... oh well :) I just checked http://www.php.net/manual/language.variables.predefined.php and this is only mentioned in the user notes, perhaps it could be in the manual itself ?

« previous php.qa (#1860) next »