Re: Getting current page name without path
| From: | Robin Vickery | Date: | Tue, 06 Sep 2005 07:46:20 +0000 |
| Subject: | Re: Getting current page name without path | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221888@lists.php.net to get a copy of this message | ||
On 9/6/05, Bushra <bush2k2@hotmail.com> wrote:
> Hi
> I want to get the name of current page. I use $PHP_SELF or
> SCRIPT_FILENAME, but it also provides the path name . I just want to
> retrieve the file name with extension. How can I do that?
http://www.php.net/manual/en/function.basename.php
-robin