Is there already a built-in function that gets the basename of the 
current file?

I wrote this:

function get_current_page_name()
{
    $current_page_name = explode("/", $_SERVER['PHP_SELF']);
    $current_page_name = array_slice($current_page_name, -1);
    return $current_page_name;
}

but I'm wondering if someone already did it for me.



Erik




----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to