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" <[EMAIL PROTECTED]> 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 



--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to