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

2001-12-24 Thread Zeev Suraski
Just FYI - if you use extract($_REQUEST), you're exposed to the very same danger that exists in register_globals. You're much better off using import_request_variables(), which allows you some control over what you put in the global scope. Zeev At 01:14 18/12/2001, Michael Jurgens wrote: >Hey

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

2001-12-17 Thread David
you can do this to get what u want: foreach($_GET as $key => $val){ $$key = $val; } this is what u want to do, right? :) >for all in $_GET >{ >$[varname] = $_GET[varname] >} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

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

2001-12-17 Thread Michael Jurgens
Hey Guys, Thanks a lot, I allways use some config files that I include in every page, and with "extract ($_REQUEST);" added to one of those files, almost all of my problems are history. I'm now working on getting $PHP_SELF etc back working, but that should work out. Amazing this newsgroup, thank

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

2001-12-17 Thread Jack Dempsey
r 17, 2001 5:59 PM To: Jack Dempsey; Michael Jurgens Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP 4.10: any way to override register_globals = OFF Jack $_GET is automatically global to all scopes. No need to globalize. chuck - Original Message - From: "Jack Dempsey" <[EM

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

2001-12-17 Thread Charles Williams
Jack $_GET is automatically global to all scopes. No need to globalize. chuck - Original Message - From: "Jack Dempsey" <[EMAIL PROTECTED]> To: "Michael Jurgens" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 10:49 P

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

2001-12-17 Thread Richard Heyes
> for all in $_GET > { > $[varname] = $_GET[varname] > } > > Could anyone give me some pointers in actually programming this? extract($_GET); -- Richard Heyes "If you have any trouble sounding condescending, find a Unix user to show you how it's done." - Scott Adams -- PHP G

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

2001-12-17 Thread Jack Dempsey
Sent: Monday, December 17, 2001 4:54 PM To: Jack Dempsey; Michael Jurgens Cc: [EMAIL PROTECTED] 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 differen

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

2001-12-17 Thread Michael Jurgens
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

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

2001-12-17 Thread Richard Heyes
> 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

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

2001-12-17 Thread Jack Dempsey
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 snippet in an auto_prepend file to magically register