Re: $HTTP_GET_VARS within a function ??
| From: | John Negretti | Date: | Mon, 14 Oct 2002 00:36:19 +0000 |
| Subject: | Re: $HTTP_GET_VARS within a function ?? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119820@lists.php.net to get a copy of this message | ||
Marco,
I was reading that there were some security risks with
"register-globals". Is this the same thing as "global".
John Negretti
www.ideablue.com
"Marco Tabini" <marcot@tabini.ca> wrote in message
news:1034553332.9026.811.camel@localhost.localdomain...
> Try using
>
> global $HTTP_GET_VARS;
>
> at the beginning of your function. $HTTP_GET_VARS has global scope, and
> by default PHP isolates functions from the parent scope.
>
>
> Marco
>
> On Sun, 2002-10-13 at 16:39, John Negretti wrote:
> > Hello All,
> >
> > I am calling a particular function. Within that function I need
access
> > to the $HTTP_GET_VARS array. It seem I could only access that array if
I
> > pass it as a parameter of the function. Is this how it's supposed to
work.
> > Thanks for any direction. NOTE: I am using PHP 4.0.6.
> >
> > John Negretti
> > www.ideablue.com
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>