Re: How do I get the name of the script?

From: Date: Sun, 14 Jul 2002 00:53:35 +0000
Subject: Re: How do I get the name of the script?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107544@lists.php.net to get a copy of this message
You have many options. Do a call to phpinfo() and note all the predefined variables, such as PHP_SELF. There is also the __FILE__ constant, print that too. Why do you request a function? If it's because $PHP_SELF is not set, that's because the PHP directive register_globals = off. Go through the predefined server array instead, it's sexier: print $_SERVER['PHP_SELF']; See also: http://www.php.net/manual/en/reserved.variables.php Regards, Philip Olson On Sat, 13 Jul 2002, David Duong wrote: > Is their a function that returns an equivalent of $PHP_SELF? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#107544) next »