Home > Backend Development > PHP Tutorial > php header Content-Type type summary

php header Content-Type type summary

WBOY
Release: 2016-07-25 09:00:51
Original
1125 people have browsed it
  1. //php heaer content-type
  2. //Programmer’s Home bbs.it-home.org Collect and organize
  3. //Collect it in case you need it.
  4. $mimetypes = array(
  5. 'ez' => 'application/andrew-inset',
  6. 'hqx' => 'application/mac-binhex40',
  7. 'cpt' => 'application/mac-compactpro',
  8. 'doc' => 'application/msword',
  9. 'bin' => 'application/octet-stream',
  10. 'dms' => 'application/octet-stream',
  11. 'lha' => 'application/octet-stream',
  12. 'lzh' => 'application/octet-stream',
  13. 'exe' => 'application/octet-stream',
  14. 'class' => 'application/octet-stream',
  15. 'so' => 'application/octet-stream',
  16. 'dll' => 'application/octet-stream',
  17. 'oda' => 'application/oda',
  18. 'pdf' => 'application/pdf',
  19. 'ai' => 'application/postscript',
  20. 'eps' => 'application/postscript',
  21. 'ps' => 'application/postscript',
  22. 'smi' => 'application/smil',
  23. 'smil' => 'application/smil',
  24. 'mif' => 'application/vnd.mif',
  25. 'xls' => 'application/vnd.ms-excel',
  26. 'ppt' => 'application/vnd.ms-powerpoint',
  27. 'wbxml' => 'application/vnd.wap.wbxml',
  28. 'wmlc' => 'application/vnd.wap.wmlc',
  29. 'wmlsc' => 'application/vnd.wap.wmlscriptc',
  30. 'bcpio' => 'application/x-bcpio',
  31. 'vcd' => 'application/x-cdlink',
  32. 'pgn' => 'application/x-chess-pgn',
  33. 'cpio' => 'application/x-cpio',
  34. 'csh' => 'application/x-csh',
  35. 'dcr' => 'application/x-director',
  36. 'dir' => 'application/x-director',
  37. 'dxr' => 'application/x-director',
  38. 'dvi' => 'application/x-dvi',
  39. 'spl' => 'application/x-futuresplash',
  40. 'gtar' => 'application/x-gtar',
  41. 'hdf' => 'application/x-hdf',
  42. 'js' => 'application/x-javascript',
  43. 'skp' => 'application/x-koan',
  44. 'skd' => 'application/x-koan',
  45. 'skt' => 'application/x-koan',
  46. 'skm' => 'application/x-koan',
  47. 'latex' => 'application/x-latex',
  48. 'nc' => 'application/x-netcdf',
  49. 'cdf' => 'application/x-netcdf',
  50. 'sh' => 'application/x-sh',
  51. 'shar' => 'application/x-shar',
  52. 'swf' => 'application/x-shockwave-flash',
  53. 'sit' => 'application/x-stuffit',
  54. 'sv4cpio' => 'application/x-sv4cpio',
  55. 'sv4crc' => 'application/x-sv4crc',
  56. 'tar' => 'application/x-tar',
  57. 'tcl' => 'application/x-tcl',
  58. 'tex' => 'application/x-tex',
  59. 'texinfo' => 'application/x-texinfo',
  60. 'texi' => 'application/x-texinfo',
  61. 't' => 'application/x-troff',
  62. 'tr' => 'application/x-troff',
  63. 'roff' => 'application/x-troff',
  64. 'man' => 'application/x-troff-man',
  65. 'me' => 'application/x-troff-me',
  66. 'ms' => 'application/x-troff-ms',
  67. 'ustar' => 'application/x-ustar',
  68. 'src' => 'application/x-wais-source',
  69. 'xhtml' => 'application/xhtml+xml',
  70. 'xht' => 'application/xhtml+xml',
  71. 'zip' => 'application/zip',
  72. 'au' => 'audio/basic',
  73. 'snd' => 'audio/basic',
  74. 'mid' => 'audio/midi',
  75. 'midi' => 'audio/midi',
  76. 'kar' => 'audio/midi',
  77. 'mpga' => 'audio/mpeg',
  78. 'mp2' => 'audio/mpeg',
  79. 'mp3' => 'audio/mpeg',
  80. 'aif' => 'audio/x-aiff',
  81. 'aiff' => 'audio/x-aiff',
  82. 'aifc' => 'audio/x-aiff',
  83. 'm3u' => 'audio/x-mpegurl',
  84. 'ram' => 'audio/x-pn-realaudio',
  85. 'rm' => 'audio/x-pn-realaudio',
  86. 'rpm' => 'audio/x-pn-realaudio-plugin',
  87. 'ra' => 'audio/x-realaudio',
  88. 'wav' => 'audio/x-wav',
  89. 'pdb' => 'chemical/x-pdb',
  90. 'xyz' => 'chemical/x-xyz',
  91. 'bmp' => 'image/bmp',
  92. 'gif' => 'image/gif',
  93. 'ief' => 'image/ief',
  94. 'jpeg' => 'image/jpeg',
  95. 'jpg' => 'image/jpeg',
  96. 'jpe' => 'image/jpeg',
  97. 'png' => 'image/png',
  98. 'tiff' => 'image/tiff',
  99. 'tif' => 'image/tiff',
  100. 'djvu' => 'image/vnd.djvu',
  101. 'djv' => 'image/vnd.djvu',
  102. 'wbmp' => 'image/vnd.wap.wbmp',
  103. 'ras' => 'image/x-cmu-raster',
  104. 'pnm' => 'image/x-portable-anymap',
  105. 'pbm' => 'image/x-portable-bitmap',
  106. 'pgm' => 'image/x-portable-graymap',
  107. 'ppm' => 'image/x-portable-pixmap',
  108. 'rgb' => 'image/x-rgb',
  109. 'xbm' => 'image/x-xbitmap',
  110. 'xpm' => 'image/x-xpixmap',
  111. 'xwd' => 'image/x-xwindowdump',
  112. 'igs' => 'model/iges',
  113. 'iges' => 'model/iges',
  114. 'msh' => 'model/mesh',
  115. 'mesh' => 'model/mesh',
  116. 'silo' => 'model/mesh',
  117. 'wrl' => 'model/vrml',
  118. 'vrml' => 'model/vrml',
  119. 'css' => 'text/css',
  120. 'html' => 'text/html',
  121. 'htm' => 'text/html',
  122. 'asc' => 'text/plain',
  123. 'txt' => 'text/plain',
  124. 'rtx' => 'text/richtext',
  125. 'rtf' => 'text/rtf',
  126. 'sgml' => 'text/sgml',
  127. 'sgm' => 'text/sgml',
  128. 'tsv' => 'text/tab-separated-values',
  129. 'wml' => 'text/vnd.wap.wml',
  130. 'wmls' => 'text/vnd.wap.wmlscript',
  131. 'etx' => 'text/x-setext',
  132. 'xsl' => 'text/xml',
  133. 'xml' => 'text/xml',
  134. 'mpeg' => 'video/mpeg',
  135. 'mpg' => 'video/mpeg',
  136. 'mpe' => 'video/mpeg',
  137. 'qt' => 'video/quicktime',
  138. 'mov' => 'video/quicktime',
  139. 'mxu' => 'video/vnd.mpegurl',
  140. 'avi' => 'video/x-msvideo',
  141. 'movie' => 'video/x-sgi-movie',
  142. 'ice' => 'x-conference/x-cooltalk',
  143. );
  144. ?>
复制代码


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template