RE: [PHP] register_globals = off and $PHP_SELF

From: Date: Fri, 01 Sep 2000 20:38:05 +0000
Subject: RE: [PHP] register_globals = off and $PHP_SELF
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14870@lists.php.net to get a copy of this message
I think you need to add this to your fucntion or class: global $HTTP_SERVER_VARS; > -----Original Message----- > From: scottrus@ipass.net [mailto:scottrus@ipass.net] > Sent: Friday, September 01, 2000 4:09 AM > To: php general > Subject: [PHP] register_globals = off and $PHP_SELF > > > All - > > Okay, now I think about to use my quaota of silly questions for the > month. > > In my php.ini under 4.0.2 I have "register_globals = Off" set. It's > recomened this be turned off for max speed, or at least that's what the > header of the php.ini-optimized file says. > > With this turned off I have to access $PHP_SELF though > HTTP_SERVER_VARS["PHP_SELF"], that works. Unless I'm trying to get the > value of $PHP_SELF from inside a class or function. In this case it comes > up empty. > > I think the ideal solution would be turn GPCE globals off and leave the > HTTP_SERVER_VARS[] registed as globals. > > Any thoughts on how to handle this? > > -- > Scott > > -- > 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 > >

« previous php.general (#14870) next »