Re: where is PHP_SELF?

From: Date: Fri, 01 Feb 2002 01:03:59 +0000
Subject: Re: where is PHP_SELF?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83048@lists.php.net to get a copy of this message
On Thursday, January 31, 2002, at 06:12 PM, Lars Torben Wilson wrote:
On Thu, 2002-01-31 at 14:57, Erik Price wrote:
I'm running PHP 4.1.0 on LAMP w/register_globals=off
                                  ^^^^^^^^^^^^^^^^^^^^
Since register_globals is off, the $_SERVER array will not be extracted into the global scope. Try $_SERVER['PHP_SELF'] and you should be fine.
AHHH... I didn't know that the predefined variables belonged to an array like that. So far I haven't used anything but $_GET, $_POST, and $_SESSION. Guess I should study some more. Thanks Lars Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#83048) next »