Click to See Complete Forum and Search --> : PHP_SELF undefined with 4.2.1


martinj
05-16-2002, 11:28 PM
Just installed PHP-4.2.1 and now my PHP_SELF variable is not set!

Any help is appreciated,

Jeff Martin
jeff@dgjc.org

Anon
05-17-2002, 08:35 AM
We would also like to attend you on a big change in PHP 4.2.0 concerning variable handling. External variables (from the environment, the HTTP request, cookies or the web server) are no longer registered in the global scope by default. The preferred method of accessing these external variables is by using the new Superglobal arrays, introduced in PHP 4.1.0. More information about this change:

try _SERVER["PHP_SELF"]

Anon
05-19-2002, 12:24 AM
No!

It's not correct.

$_SERVER["PHP_SELF"]

Have a good day!