note 82357 deleted from security.globals by ezyang

From: Date: Mon, 07 Apr 2008 19:52:09 +0000
Subject: note 82357 deleted from security.globals by ezyang
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138009@lists.php.net to get a copy of this message
Note Submitter: aatelfer at hotmail dot com Reason: bad code ---- If you have a site that depended heavily on register_globals and for some reason you don't have it on anymore, the following code may help: // Temporary fix for sites that turn off regiser_globals foreach($_POST as $key => $value){ if(is_string($key)){ $code = "\${$key} = \"$value\";"; eval($code); eval("global \${$key};"); } }

« previous php.notes (#138009) next »