Posted By

tylerhall on 01/05/07


Tagged

array mime types


Versions (?)

Who likes this?

26 people have marked this snippet as a favorite

Roshambo
mountainash
simpeligent
mafro
Phoenix
vali29
Steffen82
leandemon
Firemarble
ibomb
skywalker
grn
nb109
benpjohnson
chumlee007
mgerdt
bobbym245
melihbuyuk
ColdKeyboard
mfigge
Almorca
krillzip
Briantjuh
pelted
jamiepeloquin
tux-world


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.