php-general | 2001062
Date: 06/22/01
- Next message: Tyler Longren: "Re: [PHP] mcrypt_cbc()"
- Previous message: David Robley: "Re: [PHP] PHP timer"
- In reply to: Matthew M. Boulter: "[PHP] $HTTP_???_VARS[] always populated?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 22 Jun 2001 08:02, Matthew M. Boulter wrote:
> Quick question crew,
>
> ATM we're trying to convert all of our existing scripts t conform to
> register_globals being OFF, i.e., accessing everything through the
> $HTTP_???_VARS[] arrays.
>
> What I was wondering is, when register_globals in ON, do all of the
> $HTTP_???_VARS[] arrays * still * get populated?
>
> I.e., if we convert all our scripts to use these arrays and then decide
> to turn register_globals on again, will all our changed scripts still
> work?
>
> Thanx, Matty.
I've got register_globals on and the following script
<?php
while(list($key, $val) = each($HTTP_GET_VARS)){
echo "$key ==> $val<BR>";
}
?>
called with test.php?a=as&b=bs
returns
a ==> as
b ==> bs
So looks like you would be OK.
-- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIAA good pun is its own reword.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Tyler Longren: "Re: [PHP] mcrypt_cbc()"
- Previous message: David Robley: "Re: [PHP] PHP timer"
- In reply to: Matthew M. Boulter: "[PHP] $HTTP_???_VARS[] always populated?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

