
$PHP_SELF
I notice $PHP_SELF code does not work for me, it redirects in the browser, why is that?
To be honest, I can't find anything in PHP's documentation concerning a variable $PHP_SELF. Perhaps it is deprecated? (Though, I do remember reading it in a book on PHP 5... As JB said, check your register_globals settings.)
However, it seems that for me, $_SERVER['PHP_SELF'] works when $PHP_SELF and PHP_SELF don't -- so if you can't get it, use that.