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 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> 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]
>


-- 
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