exactly...in the function you'd have to extract the variables then globalize
or you could loop through the arrays and store the keys and values in the
globals array...that loop should be simple...


-----Original Message-----
From: Richard Heyes [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 4:54 PM
To: Jack Dempsey; Michael Jurgens
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

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to