note 22772 deleted from function.eval by dams
| From: | dams@php.net | Date: | Sat, 29 Jun 2002 20:11:45 +0000 |
| Subject: | note 22772 deleted from function.eval by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-32419@lists.php.net to get a copy of this message | ||
Some hosting providers tend to turn the register_globals option off although they had turned it on
while you were writing your scripts.
Then...you have a problem this little eval script helps you solve it.
foreach($_GET as $key => $value){
eval("\$$key = \"$value\";");
}
each GET variable will be available as normal. You might want to add a Global command. With older
versions of PHP you can use $HTTP_GET_VARS instead of $_GET