in reply to How can I get the file name

or, quick and dirty,
$filename = (split("/", $value))[-1];

Teabag
Sure there's more than one way, but one just needs one anyway - Teabag