Home > Backend Development > PHP Tutorial > PHP file format (mime type) comparison table

PHP file format (mime type) comparison table

WBOY
Release: 2016-07-25 09:00:37
Original
1671 people have browsed it
  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. );

复制代码


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