tye commented on a Page, List Files  -  Apr 29, 2009

You can use substr to get the portion of the text before the last .

$basefile = substr($file,0,strrpos($file,'.'));

If you add that to the while loop in the above function you can use $basefile to refer to the filename without the extension.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.