Re: PHP variable to return filename?
| From: | Jon Parise | Date: | Thu, 22 Jun 2000 19:22:33 +0000 |
| Subject: | Re: PHP variable to return filename? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2688@lists.php.net to get a copy of this message | ||
On Thu, Jun 22, 2000 at 03:14:58PM -0400, Chris Sano wrote:
> 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.
basename($PHP_SELF);
basename(__FILE__);
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member