Discuz教程网

PHP header中Content-type的种类

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




上一篇:PHP 遍历文件夹下的所有文件和子文件夹
下一篇:JQuery getJson实现ajax跨域提交问题
authicon 纤陌陌 发表于 2011-5-24 16:59:59 | 显示全部楼层
不错不错,我喜欢
authicon fhiejkl 发表于 2011-5-25 06:59:34 | 显示全部楼层
继续来索要
authicon haidideyu 发表于 2011-5-27 07:59:52 | 显示全部楼层
有意思~顶顶 ,继续顶顶。继续顶哦
authicon lightning123 发表于 2011-6-18 06:59:43 | 显示全部楼层
好东西,要下来看看
authicon 蓝天blue 发表于 2011-6-21 08:59:58 | 显示全部楼层
继续来索要
authicon lakelouise 发表于 2011-8-10 05:59:46 | 显示全部楼层
继续来索要
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-3 13:26

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表