Re: PHP variable to return filename?

From: Date: Thu, 22 Jun 2000 19:23:40 +0000
Subject: Re: PHP variable to return filename?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2689@lists.php.net to get a copy of this message
At 03:14 PM 6/22/00 -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.
Hi Chris, There is no variable that I know of that contains just the filename - perhaps someone else will know better? I would just use the basename function on $PHP_SELF. HTH, Zak Greant Creative Director Nucleus Information Service Inc. "When we feel a strong desire to thrust our advice upon others, it is usually because we suspect their weakness; but we ought rather to suspect our own." - Charles Caleb Colton

« previous php.general (#2689) next »