Welcome Guest, Not a member yet? Register   Sign In
Get file extension by mime type
#1

[eluser]marcoslavorato[/eluser]
Hello folks!

I have a external file downloader using Curl, and I don't know witch file extension that is downloaded Using the curl_getinfo I get the mime-type from this file.

My question is: How can I get the file extension with a mime-type? I see that Codeigniter has a function that return the mime-type from a file extension (witch is the inverse).

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB