Array of MIME Types


 / Published in: PHP
 

This is an associative array of nearly every common MIME type. It's useful when you need to serve a file for download but you don't know the correct content type. You can look it up using it's extension.

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: fireinthebelly on August 23, 2009

Good work, thanks

Posted By: murdaugh on July 15, 2012

This is excellent - but it seems to be missing: image/png

You need to login to post a comment.