note 38859 deleted from language.variables.variable by irchtml
| From: | irchtml@php.net | Date: | Sun, 07 Mar 2004 15:56:08 +0000 |
| Subject: | note 38859 deleted from language.variables.variable by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66396@lists.php.net to get a copy of this message | ||
Note Submitter: m4v3r@o2.pl
----
If you have problem with your script on a server with register_globals off, you can use this code at
the beginning of your script, which will, set up all variables:
<?
foreach($_SESSION AS $key => $value) { ${$key} = $value; }
foreach($_GET AS $key => $value) { ${$key} = $value; }
foreach($_POST AS $key => $value) { ${$key} = $value; }
foreach($_COOKIE AS $key => $value) { ${$key} = $value; }
?>
You might do the same with $_SERVER or $_FILES variables. Hope this'll help someone :).