RE: [PHP] PHP 4.10: any way to override register_globals = OFF

From: Date: Mon, 17 Dec 2001 22:19:36 +0000
Subject: RE: [PHP] PHP 4.10: any way to override register_globals = OFF
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78006@lists.php.net to get a copy of this message
exactly...in the function you'd have to extract the variables then globalize them... or you could loop through the arrays and store the keys and values in the globals array...that loop should be simple... jack -----Original Message----- From: Richard Heyes [mailto:richard@phpguru.org] Sent: Monday, December 17, 2001 4:54 PM To: Jack Dempsey; Michael Jurgens Cc: php-general@lists.php.net Subject: RE: [PHP] PHP 4.10: any way to override register_globals = OFF > 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 (#78006) next »