Re: PHP 4.10: any way to override register_globals = OFF
| From: | Jack Dempsey | Date: | Mon, 17 Dec 2001 21:49:00 +0000 |
| Subject: | Re: PHP 4.10: any way to override register_globals = OFF | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78000@lists.php.net to get a copy of this message | ||
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