Jump to content

Getting filename


treeleaf20

Recommended Posts

All,

I have the two following URLs:

 

http://photos-c.ak.fbcdn.net/photos-.../n47602684_30183939_7359.jpg

 

http://photos-c.ak.fbcdn.net/photos-.../n38801267_31342580_3128.jpg

 

Basically they always end in a .jpg, .gif or .png and then I always want to take it from the the .jpg, .gif or .png to the previous /

 

So for this I'd like to grab:

n38801267_31342580_3128.jpg and n47602684_30183939_7359.jpg

 

What is the best way to do this?

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/184038-getting-filename/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.