PHP_SELF is only available when register_globals is set to ON. Otherwise you have to use the superglobal arrays.
The fact that register_globals is OFF makes me beleive that your PHP version is at least 4.2.0 since PHP's default setting is OFF since that version.
You should then refer to $_SERVER['PHP_SELF'] instead.
Versions before 4.1.0 used to name the superglobal arrays differently:
$HTTP_SERVER_VARS, $HHTP_POST_VARS etc.
ALthough these identifiers are still accessible they are deprecated and you should use $_SERVER, $_POST etc. if your version is 4.2.0 or later.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.