Hi guys,
I have a URL:
http://www.somedomain.com/downloads/file.zip or http://www.somedomain.com/downloads/file.jpeg
I need to get the extension, how would I say, echo everything after "." the the "zip" or "jpeg" part?
Thanks
Have a look at [man]parse_url[/man] and/or [man]strstr[/man].
[man]strrchr[/man]
Originally posted by LordShryku [man]strrchr[/man]
Oh yes, that's the one I was thinking of. There's just so many string-handling functions I didn't bother checking the manual before I posted.
[sorry about the edit. I feel my DTs coming on]