Re: PHP variable to return filename?

From: Date: Thu, 22 Jun 2000 23:22:43 +0000
Subject: Re: PHP variable to return filename?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2718@lists.php.net to get a copy of this message
> I know this is another one of my lame questions, but what is the built-in > PHP variable that will return the current filename whcih is being executed? > > I tried $PHP_SELF and that returned the whole PHP path. This question is web server specific. Use phpinfo() to display all of the currently available variables. Alternately, it wouldn't be much work to take $PHP_SELF and chop off everything up to the last \ or /.

« previous php.general (#2718) next »