note 22772 added to function.eval

From: Date: Sat, 29 Jun 2002 10:51:42 +0000
Subject: note 22772 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-32406@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 -- http://www.php.net/manual/en/function.eval.php http://master.php.net/manage/user-notes.php?action=edit+22772 http://master.php.net/manage/user-notes.php?action=delete+22772 http://master.php.net/manage/user-notes.php?action=reject+22772

« previous php.notes (#32406) next »