A function to get file mime-types with curl.


/ Published in: PHP
Save to your folder(s)

This is a function to retrieve the mime-type of a file by checking the header response with curl. It accepts the file-path as a parameter & it also has a fallback for empty returns.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.