php檔案格式(mime類型)對照表

WBOY
發布: 2016-07-25 09:00:37
原創
1632 人瀏覽過
  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
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!