RE: [PHP] "global" AND Register Globals with PHP 4.0.6 ??
| From: | CCI-San Diego) | Date: | Mon, 14 Oct 2002 15:09:54 +0000 |
| Subject: | RE: [PHP] "global" AND Register Globals with PHP 4.0.6 ?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-119907@lists.php.net to get a copy of this message | ||
What is the difference?
I can't seem to find documentation.
Thanks.
John Negretti
Web Applications Developer
Cox Communications www.cox.com
(619) 266-5565
> -----Original Message-----
> From: Sascha Cunz [mailto:Sascha@GaNoAn.org]
> Sent: Monday, October 14, 2002 8:06 AM
> To: Negretti, John (CCI-San Diego); php-general@lists.php.net
> Subject: Re: [PHP] "global" AND Register Globals with PHP 4.0.6 ??
>
>
> Am Montag, 14. Oktober 2002 16:51 schrieb Negretti, John
> (CCI-San Diego):
> > Hello,
> >
> > I need to access the "$HTTP_GET_VARS" and
> "$HTTP_COOKIE_VARS" arrays
> > within a function. In order to do this I have to pass
> $HTTP_GET_VARS as a
> > parameter of the function. How can I access these built-in
> arrays without
> > passing it as a function parameter. Should I define them
> as a "global"
> > variable. I read that "register globals" has some security
> issues. Are
> > these the same, or is setting a variable as "global" and
> "register globals"
> > different? NOTE: I am using PHP 4.0.6. Thanks for any
> assistance. :-)
> >
> > John Negretti
> > Web Applications Developer
> > Cox Communications www.cox.com
>
> Just declare them as a global in your function. The "register
> globals"
> settings is some different thing.
>
> Sascha
>