首页 > 后端开发 > php教程 > php文件格式(mime类型)对照表

php文件格式(mime类型)对照表

WBOY
发布: 2016-07-25 09:00:37
原创
1670 人浏览过
  1. $mime_types = array(

  2. 'gif' => 'image/gif',
  3. 'jpg' => 'image/jpeg',
  4. 'jpeg' => 'image/jpeg',
  5. 'jpe' => 'image/jpeg',
  6. 'bmp' => 'image/bmp',
  7. 'png' => 'image/png',
  8. 'tif' => 'image/tiff',
  9. 'tiff' => 'image/tiff',
  10. 'pict' => 'image/x-pict',
  11. 'pic' => 'image/x-pict',
  12. 'pct' => 'image/x-pict',
  13. 'tif' => 'image/tiff',
  14. 'tiff' => 'image/tiff',
  15. 'psd' => 'image/x-photoshop',
  16. 'swf' => 'application/x-shockwave-flash',

  17. 'js' => 'application/x-javascript',
  18. 'pdf' => 'application/pdf',
  19. 'ps' => 'application/postscript',
  20. 'eps' => 'application/postscript',
  21. 'ai' => 'application/postscript',
  22. 'wmf' => 'application/x-msmetafile',
  23. 'css' => 'text/css',

  24. 'htm' => 'text/html',
  25. 'html' => 'text/html',
  26. 'txt' => 'text/plain',
  27. 'xml' => 'text/xml',
  28. 'wml' => 'text/wml',
  29. 'wbmp' => 'image/vnd.wap.wbmp',
  30. 'mid' => 'audio/midi',

  31. 'wav' => 'audio/wav',
  32. 'mp3' => 'audio/mpeg',
  33. 'mp2' => 'audio/mpeg',
  34. 'avi' => 'video/x-msvideo',

  35. 'mpeg' => 'video/mpeg',
  36. 'mpg' => 'video/mpeg',
  37. 'qt' => 'video/quicktime',
  38. 'mov' => 'video/quicktime',
  39. 'lha' => 'application/x-lha',

  40. 'lzh' => 'application/x-lha',
  41. 'z' => 'application/x-compress',
  42. 'gtar' => 'application/x-gtar',
  43. 'gz' => 'application/x-gzip',
  44. 'gzip' => 'application/x-gzip',
  45. 'tgz' => 'application/x-gzip',
  46. 'tar' => 'application/x-tar',
  47. 'bz2' => 'application/bzip2',
  48. 'zip' => 'application/zip',
  49. 'arj' => 'application/x-arj',
  50. 'rar' => 'application/x-rar-compressed',
  51. 'hqx' => 'application/mac-binhex40',

  52. 'sit' => 'application/x-stuffit',
  53. 'bin' => 'application/x-macbinary',
  54. 'uu' => 'text/x-uuencode',

  55. 'uue' => 'text/x-uuencode',
  56. 'latex'=> 'application/x-latex',

  57. 'ltx' => 'application/x-latex',
  58. 'tcl' => 'application/x-tcl',
  59. 'pgp' => 'application/pgp',

  60. 'asc' => 'application/pgp',
  61. 'exe' => 'application/x-msdownload',
  62. 'doc' => 'application/msword',
  63. 'rtf' => 'application/rtf',
  64. 'xls' => 'application/vnd.ms-excel',
  65. 'ppt' => 'application/vnd.ms-powerpoint',
  66. 'mdb' => 'application/x-msaccess',
  67. 'wri' => 'application/x-mswrite',
  68. );
复制代码


来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板