Re: [PHP] turn register_globals on
> 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! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] turn register_globals on
Hi, Monday, September 9, 2002, 3:42:44 AM, you wrote: A> Hello I am working on a PHP server which has register_globals off. In my A> script is there anyway to turn it on, just for my script? By the time your script is read register_globals has already done it's checking so it is too late and won't have any effect. The only way is by .htaccess if you have apache. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] turn register_globals on
I think it is a global configuration setting, so it would not be possible to turn it off for an individual script. Just use the $_SERVER['variable_name'] -Brad 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? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] turn register_globals on
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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php