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

From: Date: Sun, 14 Jul 2002 00:48:49 +0000
Subject: Re: How do I get the name of the script?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-107545@lists.php.net to get a copy of this message
Thnx for hte help, I wanted to keep register globals off, its a security hazard. "Philip Olson" <philip@cornado.com> wrote in message news:Pine.BSF.4.10.10207140050140.63499-100000@localhost... > > 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 (#107545) next »