note 32525 deleted from security.registerglobals by didou
| From: | didou@php.net | Date: | Fri, 30 May 2003 07:33:31 +0000 |
| Subject: | note 32525 deleted from security.registerglobals by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49394@lists.php.net to get a copy of this message | ||
Note Submitter: martin gueissaz at nospam
----
In regard to contributions about .htaccess config of register_globals.
If you need to work with a mix of "off" and "on" of register_globals during a
transistion period, you can do a test prior to execute any script, making old code work with a
heading script like this:
if (Test to pass during transition){
foreach($_GET as $var=>$value){
$variable=$var;
$$variable=$value;
}
foreach($_POST as $var=>$value){
$variable=$var;
$$variable=$value;
}
}
Beware that using this will not protect your old scripts, so use it only during a transitional
period!