Re: RE: [PHP] PHP_SELF is not working?

From: Date: Wed, 27 Sep 2000 19:58:10 +0000
Subject: Re: RE: [PHP] PHP_SELF is not working?
Groups: php.general 
Request: Send a blank email to php-general+get-17779@lists.php.net to get a copy of this message
He is using php3, and not php4 (he could update though) IIS is able to habdle $PHP_SELF correctly even with the cgi versions of php3 and php4. How come Apache is unable to do so ? Would it work if he put %s %s after /php3/php.exe in httpd.conf ? - Frank >> 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> > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#17779) next »