View Single Post
Old 08-17-2009, 01:42 PM   #5 (permalink)
codefreek
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

You name your php scripts right ?
a file(phpfile) name: index.php.. = filename..



PHP Code:
//this works as well ;)
function fileName($path)
{
     return 
substr($pathstrrpos($path'/')+1strlen($path));

codefreek is offline  
Reply With Quote