Jump to content

Parsing help!


kernelgpf

Recommended Posts

I'm bad at parsing and was wondering if someone could whip up a bit of code to take a file name out of a directory URL.

 

Here's an example-

 

/home/wildtail/public_html/autopics/breedable/natural/manetail/black.png

 

I need it to just take the actual file name (black.png) out from the rest, scrap the rest, and then remove the .png on the end so all that's left is "black", but it's different with different file names, obviously.

 

Pre-thanks!

Link to comment
https://forums.phpfreaks.com/topic/115349-parsing-help/
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.