Re: PHP 4.10: any way to override register_globals = OFF

From: Date: Mon, 17 Dec 2001 22:07:34 +0000
Subject: Re: PHP 4.10: any way to override register_globals = OFF
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-78004@lists.php.net to get a copy of this message
Thank you for your answers. The hack seems the way to go, but I haven't found anything like this on the net. Presumably because the 'problem' is so new... I have absolutely no control over my hosting providers settings, and I wish PHP 4.10 would just understand something like set_register_globals I haven't got that much experience with playing with variables at this level. What would do the trick is something like this: for all in $_GET { $[varname] = $_GET[varname] } Could anyone give me some pointers in actually programming this? Many thanks, Michael "Richard Heyes" <richard@phpguru.org> wrote in message news:NEBBIDEMHHJJCANAAAKFCEHKKCAA.richard@phpguru.org... > > a quick and inelegant hack > > 4.1 includes an array that has all of the data sent to the > > script...(or use > > the different ones like $_GET etc if need be) then write a > > globalize function > > that extracts the vars and declares them global...then use this > > Or use extract(). > > -- > Richard Heyes > "If you have any trouble sounding condescending, > find a Unix user to show you how it's done." - Scott Adams

« previous php.general (#78004) next »