Posted by macca on 09/24/07 01:58
function filename_asuc(){ $last_dot = strlen(strchr($_SERVER['PHP_SELF'], '.')); $dir = explode('/', substr($_SERVER['PHP_SELF'], 0, - $last_dot)); $sep = count($dir) - 1; return ucfirst($dir[$sep]); } // call using this echo filename_asuc();
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming