Re: [PHP] Getting current page name without path

2005-09-06 Thread Robin Vickery
On 9/6/05, Bushra <[EMAIL PROTECTED]> 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 -r

RE: [PHP] Getting current page name without path

2005-09-06 Thread George Pitcher
> 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? > $_SERVER['SCRIPT_NAME'] and $_SERVER['ORIG_SCRIPT_NAME'] will give you the current filename without the

[PHP] Getting current page name without path

2005-09-06 Thread Bushra
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? Regards Bushra -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php