Re: Why is this happening
| From: | Ben Ramsey | Date: | Tue, 09 Mar 2004 03:19:45 +0000 |
| Subject: | Re: Why is this happening | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179862@lists.php.net to get a copy of this message | ||
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