Re: php_self and windows

From: Date: Fri, 08 Dec 2000 20:19:04 +0000
Subject: Re: php_self and windows
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29397@lists.php.net to get a copy of this message
This is a side-effect of using the CGI version of PHP4, because Apache invisibly redirects to the URL you see with for PHP_SELF, which is what the script is running as itself. You can either use REQUEST_URI instead of PHP_SELF, or install the Win32 Apache module version (note: you will have needed to download the version with ISAPI support, not the one with an installer), which you can find directions to install the module version here: http://cvs.php.net/viewcvs.cgi/php4/win32/install.txt (just click on the first download link) and I would recommend adding the following additional lines in addition to the this one (the first one is in the directions): AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php AddType application/x-httpd-php .phtml Matthew At 12:07 PM 12/8/2000 -0800, you wrote:
when i do a phpinfo() php_self shows /php/php.exe/phpinfo.php which really doesn't work very well <g> Guess what .. we are running under windows. SO the question is .. is this a limitation of the php/windows/apache environment or is there a configuration around this. I have searched all messages for the last couple of months and have not found and answer .. manual does not mention that php_self doesn't work very well. help and advice (other than going to *nix) is greatly appreciated


« previous php.general (#29397) next »