RE: [PHP] PHP_SELF is not working?

From: Date: Wed, 27 Sep 2000 17:32:15 +0000
Subject: RE: [PHP] PHP_SELF is not working?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17763@lists.php.net to get a copy of this message
> When I ask for the PHP_SELF value, it always comes up > /php3/php.exe . I have no idea where it gets that but it never changes. That's because you're running PHP in the cgi version. When you request a PHP file from your browser (e.g http://foo.bar/test/file.php), Apache redirects your request to the PHP CGI binary, so that the parse may parse the script. And that's why you get this /php3/php.exe/test/file.php instead of /test/file.php. To avoid this problem, download the Apache module version from http://www.php4win.de Regards, Lars Holm Nielsen <lars@hankat.dk>

« previous php.general (#17763) next »