Re: PHP_SELF
| From: | Jim Thome | Date: | Mon, 29 Apr 2002 15:36:48 +0000 |
| Subject: | Re: PHP_SELF | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6770@lists.php.net to get a copy of this message | ||
Scott--
The variable PHP_SELF requires the directive "register_globals" (automatically create
variables) to be on, which it is by default in PHP < 4.2. For security reasons, enabling this
directive IS NOT a good idea, and the default installation has been changed in PHP 4.2. For more
information, read this: http://www.php.net/release_4_2_0.php
Instead, use $_SERVER['PHP_SELF'] for your scripts to work in PHP 4.2.
Regards,
--Jim
>>> "Scott McAnally" <scott@tjbrunner.com> 04/29/02 08:56AM >>>
I am relatively new to PHP, but I have a problem that no one else has talk
about, so I'm guessing it's something simple.
I'm running PHP on WinXP (with IIS). I upgraded from PHP 4.1.2 to PHP 4.2,
and now all of of my scripts that use the variable PHP_SELF do not work.
Undefined variable.
I figured I had done something wrong, but when I uninstalled PHP 4.2 and
reinstalled 4.1.2 all of my scripts worked again.
Scratch, scratch. Please help.
Scott
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php