note 22773 added to configuration
| From: | wilco at wilco dot ws | Date: | Sat, 29 Jun 2002 11:27:37 +0000 |
| Subject: | note 22773 added to configuration | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32407@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/configuration.php
http://master.php.net/manage/user-notes.php?action=edit+22773
http://master.php.net/manage/user-notes.php?action=delete+22773
http://master.php.net/manage/user-notes.php?action=reject+22773