Posted on 2007/10/10 by JaniPHP: strip path from filename Since Google doesn’t seem to know at the moment: there’s basename.