Re: $PHP_SELF

From: Date: Mon, 20 Oct 2003 18:30:10 +0000
Subject: Re: $PHP_SELF
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166792@lists.php.net to get a copy of this message
$PHP_SELF is a variable that is a variable that has limited scope and as a rule of thumb should never be used. It is a very sloppy way to code. I advise you stick to $_SERVER['PHP_SELF']. ----- Original Message ----- From: Boris Sagadin To: php-general@lists.php.net Sent: Monday, October 20, 2003 7:23 AM Subject: [PHP] $PHP_SELF I'm having problems with $PHP_SELF variable. Mostly it works, other times (about 10% of tries) it's just empty. Is this a known issue with Apache 2? If I use $_SERVER['PHP_SELF'], it always works fine, but still I'd like to know if this is a common bug or there's something wrong with my configuration. I'm using PHP 4.3.3 with Apache 2.0.43, Linux 2.4.21-grsec, register_globals is on Thanks, Boris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#166792) next »