Re: Global variable question question
| From: | Jason Giangrande | Date: | Wed, 23 Jul 2003 20:27:19 +0000 |
| Subject: | Re: Global variable question question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156530@lists.php.net to get a copy of this message | ||
Actually, I am running PHP 4.3.2 on a Gentoo Linux box with
registered_globals set to Off and $PHP_SELF does work. The production
box running Red Hat and PHP 4.3.0, with register_globals also set to
Off, doesn't work using $PHP_SELF (as apparently it should), and this is
why I was asking.
Jason
On Wed, 2003-07-23 at 16:13, Lars Torben Wilson wrote:
> On Wed, 2003-07-23 at 12:19, Jason Giangrande wrote:
> > When registered globals is set to off this does not effect the $PHP_SELF
> > variable right? In other words I should be able to call $PHP_SELF with
> > out having to do this $_SERVER['PHP_SELF'], right?
> >
> > Thanks,
> > Jason Giangrande
>
> Without going into why you didn't read the manual or just try it, the
> answer is 'wrong'. ;) If register_globals is off, $_SERVER['PHP_SELF']
> is what you will need.
>
>
> Good luck,
>
> Torben
>