首頁 > 後端開發 > php教程 > php header Content-Type類型總結

php header Content-Type類型總結

WBOY
發布: 2016-07-25 09:00:51
原創
1107 人瀏覽過
  1. //php heaer content-type
  2. //程式設計師之家bbs.it-home.org 收集整理
  3. / /收藏下吧,以備不時之需。
  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' => '應用程式/八位元組流',
  12. 'lzh' => '應用程式/八位元組流',
  13. 'exe' = > '應用程式/八位元組; -stream',
  14. 'class' => '應用程式/八位元組流',
  15. 'so' => '應用程式/八位元組流',
  16. 'dll' => '應用程式/八位元組流' ',
  17. 'oda' => '應用程式/oda',
  18. 'pdf' => '應用程式/pdf ',
  19. 'ai' => '應用程式/postscript',
  20. 'eps ' => '應用程式/postscript',
  21. 'ps' => '應用程式/postscript',
  22. 'smi' => '應用程式/smil',
  23. 'smil' => '應用程式/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' => '應用程式/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. '我' =>; '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' =>; '應用程式/zip',
  72. 'au' =>; '音頻/基本',
  73. 'snd' => '音頻/基本',
  74. 'mid' => '音頻/midi',
  75. 'midi' => '音頻/midi',
  76. 'kar' => '音頻/midi',
  77. 'mpga' => '音頻/mpeg',
  78. 'mp2' => '音頻/mpeg',
  79. 'mp3' => '音頻/mpeg',
  80. 'aif' => '音訊/x-aiff',
  81. 'aiff' => '音訊/x-aiff',
  82. 'aifc' => '音訊/x-aiff ' ',
  83. 'm3u' => '音訊/x-mpegurl',
  84. 'ram' =>; 'audio/x-pn-realaudio',
  85. 'rm' => 'audio/x-pn-realaudio',
  86. 'rpm' => 'audio/x-pn-realaudio-plugin',
  87. 'ra'=>; '音頻/x-realaudio',
  88. 'wav' =>; '音頻/x-wav',
  89. 'pdb' => 'chemical/x-pdb',
  90. 'xyz' =>; '化學/x-xyz',
  91. 'bmp' =>; '圖片/bmp',
  92. 'gif' => '圖片/gif',
  93. 'ief' => '圖片/ief',
  94. 'jpeg' =>; '圖片/jpeg',
  95. 'jpg' => '圖片/jpeg',
  96. 'jpe' =>; '圖片/jpeg',
  97. 'png' =>; '圖/png',
  98. 'tiff' =>; '圖像/tiff',
  99. 'tif' => '圖像/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' =>; '影像/x-x點陣圖',
  110. 'xpm' =>; 'image/x-xpixmap',
  111. 'xwd' =>; 'image/x-xwindowdump',
  112. 'igs' =>; '模型/網格',
  113. 'iges' => '模型/網格',
  114. 'msh' => '模型/網格',
  115. '網格' => '模型/網格' ,
  116. '筒倉' => '模型/網格',
  117. 'wrl' => '模型/vrml',
  118. 'vrml' => '模型/vrml',
  119. 'css ' =>; 'text/css',
  120. 'html' =>; 'text/html',
  121. 'htm' =>; 'text/html',
  122. 'asc' =>; '文字/純文字',
  123. 'txt' => 'text/plain',
  124. 'rtx' =>; 'text/richtext',
  125. 'rtf' =>; 'text/rtf',
  126. 'sgml' =>; '文/sgml',
  127. 'sgm'=> 'text/sgml',
  128. 'tsv' =>; '文字/製表符分隔值',
  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' =>; '視訊/mpeg',
  135. 'mpg' => '視訊/mpeg',
  136. 'mpe' = > '影片/mpeg',
  137. 'qt' => '影片/quicktime',
  138. 'mov' => '影片/quicktime',
  139. 'mxu' =>; 'video/vnd.mpegurl ',
  140. 'avi' =>; 'video/x-msvideo',
  141. '電影'=> 'video/x-sgi-movie',
  142. 'ice' =>; 'x-conference /x-cooltalk',
  143. );
  144. ?>
複製程式碼


來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板