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

From: Date: Mon, 17 Dec 2001 22:59:08 +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-78020@lists.php.net to get a copy of this message
Jack $_GET is automatically global to all scopes. No need to globalize. chuck ----- Original Message ----- From: "Jack Dempsey" <dempsejn@georgetown.edu> To: "Michael Jurgens" <m.jurgens@triangle-services.nl> Cc: <php-general@lists.php.net> Sent: Monday, December 17, 2001 10:49 PM 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 snippet in an > auto_prepend file to magically register the vars.... > there's probably a much easier way, including asking your hosting provider to > change one little config var... > > jack > > Michael Jurgens wrote: > > > Hi, > > Now that register_globals is (or will be) OFF by default (just like > > error_reporting) I'm facing a huge rewrite of existing code if my hosting > > provider decides that he wants to upgrade his php (and believe me, he will > > use default settings) > > > > Is there any way to override register_globals and error_reporing runtime in > > your PHP script? > > (there is no way that I can use .htaccess to override :-(( > > > > Any help would be much appreciated! > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#78020) next »