domain.com/file.jpg file/file2/file.jpg folder/file.jpg http://www.site.com/file.jpg http://www.site.com/domain/file.jpg
how can you return everything after the last /?
in this case, all strings would retrun file.jpg..
See [man]parse_url[/man] and [man]basename[/man]
hth