Re: turn register_globals on
| From: | Steve Yates | Date: | Mon, 09 Sep 2002 05:33:17 +0000 |
| Subject: | Re: turn register_globals on | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115703@lists.php.net to get a copy of this message | ||
> Anup wrote:
> > Hello I am working on a PHP server which has register_globals off. In my
> > script is there anyway to turn it on, just for my script?
One trick for using old PHP code is to use
extract($HTTP_POST_VARS);
...at the beginning of your script. That will autocreate all the POST
variables for you. Works for GET and others, too.
- Steve Yates
- Psychology: the study of the id by the odd.
~ Do you like my taglines? Add them to your messages and
~ laugh through hundreds more by downloading Taglinator
~ at www.srtware.com today!