mime_types


SUBMITTED BY: Guest

DATE: Dec. 6, 2013, 9:13 a.m.

FORMAT: Text only

SIZE: 5.6 kB

HITS: 706

  1. <?php
  2. $mime_types = array(
  3. 'acgi' => 'text/html',
  4. 'ai' => 'application/postscript',
  5. 'aif' => 'audio/x-aiff',
  6. 'aiff' => 'audio/x-aiff',
  7. 'aps' => 'application/mime',
  8. 'asf' => 'video/x-ms-asf',
  9. 'asm' => 'text/x-asm',
  10. 'asp' => 'text/asp',
  11. 'asx' => 'video/x-ms-asf',
  12. 'au' => 'audio/x-au',
  13. 'avi' => 'video/avi',
  14. 'avs' => 'video/avs-video',
  15. 'bin' => 'application/x-binary',
  16. 'bm' => 'image/bmp',
  17. 'bmp' => 'image/bmp',
  18. 'bsh' => 'application/x-bsh',
  19. 'bz' => 'application/x-bzip',
  20. 'bz2' => 'application/x-bzip2',
  21. 'c' => 'text/x-c',
  22. 'c++' => 'text/plain',
  23. 'cc' => 'text/x-c',
  24. 'cer' => 'application/x-x509-ca-cert',
  25. 'class' => 'application/java',
  26. 'com' => 'application/octet-stream',
  27. 'conf' => 'text/plain',
  28. 'cpp' => 'text/x-c',
  29. 'csh' => 'text/x-script.csh',
  30. 'css' => 'text/css',
  31. 'cxx' => 'text/plain',
  32. 'def' => 'text/plain',
  33. 'dif' => 'video/x-dv',
  34. 'doc' => 'application/msword',
  35. 'dot' => 'application/msword',
  36. 'dump' => 'application/octet-stream',
  37. 'dvi' => 'application/x-dvi',
  38. 'eps' => 'application/postscript',
  39. 'exe' => 'application/octet-stream',
  40. 'f' => 'text/x-fortran',
  41. 'f77' => 'text/x-fortran',
  42. 'f90' => 'text/x-fortran',
  43. 'for' => 'text/x-fortran',
  44. 'gif' => 'image/gif',
  45. 'gtar' => 'application/x-gtar',
  46. 'gz' => 'application/x-gzip',
  47. 'gzip' => 'multipart/x-gzip',
  48. 'h' => 'text/x-h',
  49. 'hh' => 'text/x-h',
  50. 'hlp' => 'application/hlp',
  51. 'hta' => 'application/hta',
  52. 'htm' => 'text/html',
  53. 'html' => 'text/html',
  54. 'htmls' => 'text/html',
  55. 'ico' => 'image/x-icon',
  56. 'inf' => 'application/inf',
  57. 'jav' => 'text/x-java-source',
  58. 'java' => 'text/x-java-source',
  59. 'jcm' => 'application/x-java-commerce',
  60. 'jpe' => 'image/jpeg',
  61. 'jpe' => 'image/pjpeg',
  62. 'jpeg' => 'image/jpeg',
  63. 'jpg' => 'image/jpeg',
  64. 'jps' => 'image/x-jps',
  65. 'js' => 'application/x-javascript',
  66. 'ksh' => 'text/x-script.ksh',
  67. 'latex' => 'application/x-latex',
  68. 'log' => 'text/plain',
  69. 'm1v' => 'video/mpeg',
  70. 'm2a' => 'audio/mpeg',
  71. 'm2v' => 'video/mpeg',
  72. 'm3u' => 'audio/x-mpequrl',
  73. 'man' => 'application/x-troff-man',
  74. 'mht' => 'message/rfc822',
  75. 'mhtml' => 'message/rfc822',
  76. 'mid' => 'audio/midi',
  77. 'midi' => 'audio/midi',
  78. 'mime' => 'message/rfc822',
  79. 'mp2' => 'audio/mpeg',
  80. 'mp3' => 'audio/mpeg3',
  81. 'mpeg' => 'video/mpeg',
  82. 'mpg' => 'audio/mpeg',
  83. 'o' => 'application/octet-stream',
  84. 'pdf' => 'application/pdf',
  85. 'pgm' => 'image/x-portable-graymap',
  86. 'pl' => 'text/x-script.perl',
  87. 'pm' => 'text/x-script.perl-module',
  88. 'pps' => 'application/mspowerpoint',
  89. 'ppt' => 'application/mspowerpoint',
  90. 'ps' => 'application/postscript',
  91. 'psd' => 'application/octet-stream',
  92. 'py' => 'text/x-script.phyton',
  93. 'pyc' => 'applicaiton/x-bytecode.python',
  94. 'rt' => 'text/richtext',
  95. 'rtf' => 'text/richtext',
  96. 's' => 'text/x-asm',
  97. 'sh' => 'application/x-sh',
  98. 'shtml' => 'text/html',
  99. 'sid' => 'audio/x-psid',
  100. 'swf' => 'application/x-shockwave-flash',
  101. 'tex' => 'application/x-tex',
  102. 'tgz' => 'application/x-compressed',
  103. 'tif' => 'image/tiff',
  104. 'tiff' => 'image/tiff',
  105. 'uri' => 'text/uri-list',
  106. 'wav' => 'audio/wav',
  107. 'xl' => 'application/excel',
  108. 'xla' => 'application/excel',
  109. 'xlb' => 'application/excel',
  110. 'xlc' => 'application/excel',
  111. 'xld' => 'application/excel',
  112. 'xlk' => 'application/excel',
  113. 'xll' => 'application/excel',
  114. 'xlm' => 'application/excel',
  115. 'xls' => 'application/excel',
  116. 'xlt' => 'application/excel',
  117. 'xlv' => 'application/excel',
  118. 'xlw' => 'application/excel',
  119. 'xm' => 'audio/xm',
  120. 'xml' => 'text/xml',
  121. 'xpm' => 'image/xpm',
  122. 'z' => 'application/x-compressed',
  123. 'zip' => 'application/x-zip-compressed',
  124. 'zsh' => 'text/x-script.zsh'
  125. );
  126. ?>

comments powered by Disqus