RE: [PHP] PHP 4.10: any way to override register_globals = OFF
| From: | Jack Dempsey | Date: | Mon, 17 Dec 2001 23:12:25 +0000 |
| Subject: | RE: [PHP] PHP 4.10: any way to override register_globals = OFF | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78023@lists.php.net to get a copy of this message | ||
i understand that, but if he extracts inside a function, those variables
will be in that scope.
if his auto_prepend file is simply 'extract($_GET)' then that'd be fine as
well
jack
-----Original Message-----
From: Charles Williams
[mailto:hosting.mailing.list.account@acnshosting.com]
Sent: Monday, December 17, 2001 5:59 PM
To: Jack Dempsey; Michael Jurgens
Cc: php-general@lists.php.net
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" <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
>
--
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