Re: upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)
| From: | Pete James | Date: | Mon, 22 Jul 2002 23:21:19 +0000 |
| Subject: | Re: upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2) | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108958@lists.php.net to get a copy of this message | ||
Evan Nemerson wrote:
>
> If you need register globals on for your old stuff, but want to write better
> new code, you can just use <?php ini_set(register_globals, 0); ?> in your new
> stuff.
You can't do this in a php file... by the time it gets to this line,
it's too late.
According to the set_ini function on php.net, register_globals is only
set-able in the ini file or in .htaccess.
P.