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