This happens because register_globals is turned off in php.ini. In fact, it's best to leave it this way. Read the manual to find out why:

http://www.php.net/variables-predefined



Bryan Bateman wrote:

This does not work:
require('languages/' . $language . '/' . basename($PHP_SELF));

This does:
require('languages/' . $language . '/' . basename($_SERVER['PHP_SELF']);


Why????????

-- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey

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



Reply via email to