Re: Problem in $_SERVER["PHP_SELF"]
| From: | Johannes Schlueter | Date: | Thu, 02 Jan 2003 18:47:16 +0000 |
| Subject: | Re: Problem in $_SERVER["PHP_SELF"] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129974@lists.php.net to get a copy of this message | ||
On Thursday 02 January 2003 19:30, ªüYam wrote:
> There is warning of my script , the warning msg is about undefined variable
> $PHP_SELF......however, when I try to use $_SERVER["PHP_SELF"] instead of
> $PHP_SELF, there is no problem....
Check your register_globals settings! Either switch it on (bad) or start your
scripts with $PHP_SELF = $_SERVER['PHP_SELF'] or replace all $PHP_SELF with
$_SERVER['PHP_SELF'].
If you don't know what register_globals is check the Manual!
johannes