MIME type by file extension mapping

Below is a class for determining MIME type by file extension an vice verse. It's probably not full and not so accurate, but may come in handy in some cases.

Sample usage for getting MIME type for extension *.txt and file extensions, corresponding to text/css:

$op = new MimeTypeExtensions();
var_dump($op->get_type_by_ext("txt"));
var_dump($op->get_ext_by_type("text/css"));


And the class itself (downloadable link):

<?php

class MimeTypeExtensions {

    public $type_by_ext = array (
      '3dm' => 'x-world/x-3dmf',
      '3dmf' => 'x-world/x-3dmf',
      'a' => 'application/octet-stream',
      'aab' => 'application/x-authorware-bin',
      'aam' => 'application/x-authorware-map',
      'aas' => 'application/x-authorware-seg',
      'abc' => 'text/vnd.abc',
      'acgi' => 'text/html',
      'afl' => 'video/animaflex',
      'ai' => 'application/postscript',
      'aif' =>
      array (
        0 => 'audio/aiff',
        1 => 'audio/x-aiff',
      ),
      'aifc' =>
      array (
        0 => 'audio/aiff',
        1 => 'audio/x-aiff',
      ),
      'aiff' =>
      array (
        0 => 'audio/aiff',
        1 => 'audio/x-aiff',
      ),
      'aim' => 'application/x-aim',
      'aip' => 'text/x-audiosoft-intra',
      'ani' => 'application/x-navi-animation',
      'aos' => 'application/x-nokia-9000-communicator-add-on-software',
      'aps' => 'application/mime',
      'arc' => 'application/octet-stream',
      'arj' =>
      array (
        0 => 'application/arj',
        1 => 'application/octet-stream',
      ),
      'art' => 'image/x-jg',
      'asf' => 'video/x-ms-asf',
      'asm' => 'text/x-asm',
      'asp' => 'text/asp',
      'asx' =>
      array (
        0 => 'application/x-mplayer2',
        1 => 'video/x-ms-asf',
        2 => 'video/x-ms-asf-plugin',
      ),
      'au' =>
      array (
        0 => 'audio/basic',
        1 => 'audio/x-au',
      ),
      'avi' =>
      array (
        0 => 'application/x-troff-msvideo',
        1 => 'video/avi',
        2 => 'video/msvideo',
        3 => 'video/x-msvideo',
      ),
      'avs' => 'video/avs-video',
      'bcpio' => 'application/x-bcpio',
      'bin' =>
      array (
        0 => 'application/mac-binary',
        1 => 'application/macbinary',
        2 => 'application/octet-stream',
        3 => 'application/x-binary',
        4 => 'application/x-macbinary',
      ),
      'bm' => 'image/bmp',
      'bmp' =>
      array (
        0 => 'image/bmp',
        1 => 'image/x-windows-bmp',
      ),
      'boo' => 'application/book',
      'book' => 'application/book',
      'boz' => 'application/x-bzip2',
      'bsh' => 'application/x-bsh',
      'bz' => 'application/x-bzip',
      'bz2' => 'application/x-bzip2',
      'c' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-c',
      ),
      'c++' => 'text/plain',
      'cat' => 'application/vnd.ms-pki.seccat',
      'cc' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-c',
      ),
      'ccad' => 'application/clariscad',
      'cco' => 'application/x-cocoa',
      'cdf' =>
      array (
        0 => 'application/cdf',
        1 => 'application/x-cdf',
        2 => 'application/x-netcdf',
      ),
      'cer' =>
      array (
        0 => 'application/pkix-cert',
        1 => 'application/x-x509-ca-cert',
      ),
      'cha' => 'application/x-chat',
      'chat' => 'application/x-chat',
      'class' =>
      array (
        0 => 'application/java',
        1 => 'application/java-byte-code',
        2 => 'application/x-java-class',
      ),
      'com' =>
      array (
        0 => 'application/octet-stream',
        1 => 'text/plain',
      ),
      'conf' => 'text/plain',
      'cpio' => 'application/x-cpio',
      'cpp' => 'text/x-c',
      'cpt' =>
      array (
        0 => 'application/mac-compactpro',
        1 => 'application/x-compactpro',
        2 => 'application/x-cpt',
      ),
      'crl' =>
      array (
        0 => 'application/pkcs-crl',
        1 => 'application/pkix-crl',
      ),
      'crt' =>
      array (
        0 => 'application/pkix-cert',
        1 => 'application/x-x509-ca-cert',
        2 => 'application/x-x509-user-cert',
      ),
      'csh' =>
      array (
        0 => 'application/x-csh',
        1 => 'text/x-script.csh',
      ),
      'css' =>
      array (
        0 => 'application/x-pointplus',
        1 => 'text/css',
      ),
      'cxx' => 'text/plain',
      'dcr' => 'application/x-director',
      'deepv' => 'application/x-deepv',
      'def' => 'text/plain',
      'der' => 'application/x-x509-ca-cert',
      'dif' => 'video/x-dv',
      'dir' => 'application/x-director',
      'dl' =>
      array (
        0 => 'video/dl',
        1 => 'video/x-dl',
      ),
      'doc' => 'application/msword',
      'dot' => 'application/msword',
      'dp' => 'application/commonground',
      'drw' => 'application/drafting',
      'dump' => 'application/octet-stream',
      'dv' => 'video/x-dv',
      'dvi' => 'application/x-dvi',
      'dwf' =>
      array (
        0 => 'drawing/x-dwf (old)',
        1 => 'model/vnd.dwf',
      ),
      'dwg' =>
      array (
        0 => 'application/acad',
        1 => 'image/vnd.dwg',
        2 => 'image/x-dwg',
      ),
      'dxf' =>
      array (
        0 => 'application/dxf',
        1 => 'image/vnd.dwg',
        2 => 'image/x-dwg',
      ),
      'dxr' => 'application/x-director',
      'el' => 'text/x-script.elisp',
      'elc' =>
      array (
        0 => 'application/x-bytecode.elisp (compiled elisp)',
        1 => 'application/x-elc',
      ),
      'env' => 'application/x-envoy',
      'eps' => 'application/postscript',
      'es' => 'application/x-esrehber',
      'etx' => 'text/x-setext',
      'evy' =>
      array (
        0 => 'application/envoy',
        1 => 'application/x-envoy',
      ),
      'exe' => 'application/octet-stream',
      'f' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-fortran',
      ),
      'f77' => 'text/x-fortran',
      'f90' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-fortran',
      ),
      'fdf' => 'application/vnd.fdf',
      'fif' =>
      array (
        0 => 'application/fractals',
        1 => 'image/fif',
      ),
      'fli' =>
      array (
        0 => 'video/fli',
        1 => 'video/x-fli',
      ),
      'flo' => 'image/florian',
      'flx' => 'text/vnd.fmi.flexstor',
      'fmf' => 'video/x-atomic3d-feature',
      'for' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-fortran',
      ),
      'fpx' =>
      array (
        0 => 'image/vnd.fpx',
        1 => 'image/vnd.net-fpx',
      ),
      'frl' => 'application/freeloader',
      'funk' => 'audio/make',
      'g' => 'text/plain',
      'g3' => 'image/g3fax',
      'gif' => 'image/gif',
      'gl' =>
      array (
        0 => 'video/gl',
        1 => 'video/x-gl',
      ),
      'gsd' => 'audio/x-gsm',
      'gsm' => 'audio/x-gsm',
      'gsp' => 'application/x-gsp',
      'gss' => 'application/x-gss',
      'gtar' => 'application/x-gtar',
      'gz' =>
      array (
        0 => 'application/x-compressed',
        1 => 'application/x-gzip',
      ),
      'gzip' =>
      array (
        0 => 'application/x-gzip',
        1 => 'multipart/x-gzip',
      ),
      'h' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-h',
      ),
      'hdf' => 'application/x-hdf',
      'help' => 'application/x-helpfile',
      'hgl' => 'application/vnd.hp-hpgl',
      'hh' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-h',
      ),
      'hlb' => 'text/x-script',
      'hlp' =>
      array (
        0 => 'application/hlp',
        1 => 'application/x-helpfile',
        2 => 'application/x-winhelp',
      ),
      'hpg' => 'application/vnd.hp-hpgl',
      'hpgl' => 'application/vnd.hp-hpgl',
      'hqx' =>
      array (
        0 => 'application/binhex',
        1 => 'application/binhex4',
        2 => 'application/mac-binhex',
        3 => 'application/mac-binhex40',
        4 => 'application/x-binhex40',
        5 => 'application/x-mac-binhex40',
      ),
      'hta' => 'application/hta',
      'htc' => 'text/x-component',
      'htm' => 'text/html',
      'html' => 'text/html',
      'htmls' => 'text/html',
      'htt' => 'text/webviewhtml',
      'htx' => 'text/html',
      'ice' => 'x-conference/x-cooltalk',
      'ico' => 'image/x-icon',
      'idc' => 'text/plain',
      'ief' => 'image/ief',
      'iefs' => 'image/ief',
      'iges' =>
      array (
        0 => 'application/iges',
        1 => 'model/iges',
      ),
      'igs' =>
      array (
        0 => 'application/iges',
        1 => 'model/iges',
      ),
      'ima' => 'application/x-ima',
      'imap' => 'application/x-httpd-imap',
      'inf' => 'application/inf',
      'ins' => 'application/x-internett-signup',
      'ip' => 'application/x-ip2',
      'isu' => 'video/x-isvideo',
      'it' => 'audio/it',
      'iv' => 'application/x-inventor',
      'ivr' => 'i-world/i-vrml',
      'ivy' => 'application/x-livescreen',
      'jam' => 'audio/x-jam',
      'jav' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-java-source',
      ),
      'java' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-java-source',
      ),
      'jcm' => 'application/x-java-commerce',
      'jfif' =>
      array (
        0 => 'image/jpeg',
        1 => 'image/pjpeg',
      ),
      'jfif-tbnl' => 'image/jpeg',
      'jpe' =>
      array (
        0 => 'image/jpeg',
        1 => 'image/pjpeg',
      ),
      'jpeg' =>
      array (
        0 => 'image/jpeg',
        1 => 'image/pjpeg',
      ),
      'jpg' =>
      array (
        0 => 'image/jpeg',
        1 => 'image/pjpeg',
      ),
      'jps' => 'image/x-jps',
      'js' => 'application/x-javascript',
      'jut' => 'image/jutvision',
      'kar' =>
      array (
        0 => 'audio/midi',
        1 => 'music/x-karaoke',
      ),
      'ksh' =>
      array (
        0 => 'application/x-ksh',
        1 => 'text/x-script.ksh',
      ),
      'la' =>
      array (
        0 => 'audio/nspaudio',
        1 => 'audio/x-nspaudio',
      ),
      'lam' => 'audio/x-liveaudio',
      'latex' => 'application/x-latex',
      'lha' =>
      array (
        0 => 'application/lha',
        1 => 'application/octet-stream',
        2 => 'application/x-lha',
      ),
      'lhx' => 'application/octet-stream',
      'list' => 'text/plain',
      'lma' =>
      array (
        0 => 'audio/nspaudio',
        1 => 'audio/x-nspaudio',
      ),
      'log' => 'text/plain',
      'lsp' =>
      array (
        0 => 'application/x-lisp',
        1 => 'text/x-script.lisp',
      ),
      'lst' => 'text/plain',
      'lsx' => 'text/x-la-asf',
      'ltx' => 'application/x-latex',
      'lzh' =>
      array (
        0 => 'application/octet-stream',
        1 => 'application/x-lzh',
      ),
      'lzx' =>
      array (
        0 => 'application/lzx',
        1 => 'application/octet-stream',
        2 => 'application/x-lzx',
      ),
      'm' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-m',
      ),
      'm1v' => 'video/mpeg',
      'm2a' => 'audio/mpeg',
      'm2v' => 'video/mpeg',
      'm3u' => 'audio/x-mpequrl',
      'man' => 'application/x-troff-man',
      'map' => 'application/x-navimap',
      'mar' => 'text/plain',
      'mbd' => 'application/mbedlet',
      'mc$' => 'application/x-magic-cap-package-1.0',
      'mcd' =>
      array (
        0 => 'application/mcad',
        1 => 'application/x-mathcad',
      ),
      'mcf' =>
      array (
        0 => 'image/vasa',
        1 => 'text/mcf',
      ),
      'mcp' => 'application/netmc',
      'me' => 'application/x-troff-me',
      'mht' => 'message/rfc822',
      'mhtml' => 'message/rfc822',
      'mid' =>
      array (
        0 => 'application/x-midi',
        1 => 'audio/midi',
        2 => 'audio/x-mid',
        3 => 'audio/x-midi',
        4 => 'music/crescendo',
        5 => 'x-music/x-midi',
      ),
      'midi' =>
      array (
        0 => 'application/x-midi',
        1 => 'audio/midi',
        2 => 'audio/x-mid',
        3 => 'audio/x-midi',
        4 => 'music/crescendo',
        5 => 'x-music/x-midi',
      ),
      'mif' =>
      array (
        0 => 'application/x-frame',
        1 => 'application/x-mif',
      ),
      'mime' =>
      array (
        0 => 'message/rfc822',
        1 => 'www/mime',
      ),
      'mjf' => 'audio/x-vnd.audioexplosion.mjuicemediafile',
      'mjpg' => 'video/x-motion-jpeg',
      'mm' =>
      array (
        0 => 'application/base64',
        1 => 'application/x-meme',
      ),
      'mme' => 'application/base64',
      'mod' =>
      array (
        0 => 'audio/mod',
        1 => 'audio/x-mod',
      ),
      'moov' => 'video/quicktime',
      'mov' => 'video/quicktime',
      'movie' => 'video/x-sgi-movie',
      'mp2' =>
      array (
        0 => 'audio/mpeg',
        1 => 'audio/x-mpeg',
        2 => 'video/mpeg',
        3 => 'video/x-mpeg',
        4 => 'video/x-mpeq2a',
      ),
      'mp3' =>
      array (
        0 => 'audio/mpeg3',
        1 => 'audio/x-mpeg-3',
        2 => 'video/mpeg',
        3 => 'video/x-mpeg',
      ),
      'mpa' =>
      array (
        0 => 'audio/mpeg',
        1 => 'video/mpeg',
      ),
      'mpc' => 'application/x-project',
      'mpe' => 'video/mpeg',
      'mpeg' => 'video/mpeg',
      'mpg' =>
      array (
        0 => 'audio/mpeg',
        1 => 'video/mpeg',
      ),
      'mpga' => 'audio/mpeg',
      'mpp' => 'application/vnd.ms-project',
      'mpt' => 'application/x-project',
      'mpv' => 'application/x-project',
      'mpx' => 'application/x-project',
      'mrc' => 'application/marc',
      'ms' => 'application/x-troff-ms',
      'mv' => 'video/x-sgi-movie',
      'my' => 'audio/make',
      'mzz' => 'application/x-vnd.audioexplosion.mzz',
      'nap' => 'image/naplps',
      'naplps' => 'image/naplps',
      'nc' => 'application/x-netcdf',
      'ncm' => 'application/vnd.nokia.configuration-message',
      'nif' => 'image/x-niff',
      'niff' => 'image/x-niff',
      'nix' => 'application/x-mix-transfer',
      'nsc' => 'application/x-conference',
      'nvd' => 'application/x-navidoc',
      'o' => 'application/octet-stream',
      'oda' => 'application/oda',
      'omc' => 'application/x-omc',
      'omcd' => 'application/x-omcdatamaker',
      'omcr' => 'application/x-omcregerator',
      'p' => 'text/x-pascal',
      'p10' =>
      array (
        0 => 'application/pkcs10',
        1 => 'application/x-pkcs10',
      ),
      'p12' =>
      array (
        0 => 'application/pkcs-12',
        1 => 'application/x-pkcs12',
      ),
      'p7a' => 'application/x-pkcs7-signature',
      'p7c' =>
      array (
        0 => 'application/pkcs7-mime',
        1 => 'application/x-pkcs7-mime',
      ),
      'p7m' =>
      array (
        0 => 'application/pkcs7-mime',
        1 => 'application/x-pkcs7-mime',
      ),
      'p7r' => 'application/x-pkcs7-certreqresp',
      'p7s' => 'application/pkcs7-signature',
      'part' => 'application/pro_eng',
      'pas' => 'text/pascal',
      'pbm' => 'image/x-portable-bitmap',
      'pcl' =>
      array (
        0 => 'application/vnd.hp-pcl',
        1 => 'application/x-pcl',
      ),
      'pct' => 'image/x-pict',
      'pcx' => 'image/x-pcx',
      'pdb' => 'chemical/x-pdb',
      'pdf' => 'application/pdf',
      'pfunk' =>
      array (
        0 => 'audio/make',
        1 => 'audio/make.my.funk',
      ),
      'pgm' =>
      array (
        0 => 'image/x-portable-graymap',
        1 => 'image/x-portable-greymap',
      ),
      'pic' => 'image/pict',
      'pict' => 'image/pict',
      'pkg' => 'application/x-newton-compatible-pkg',
      'pko' => 'application/vnd.ms-pki.pko',
      'pl' =>
      array (
        0 => 'text/plain',
        1 => 'text/x-script.perl',
      ),
      'plx' => 'application/x-pixclscript',
      'pm' =>
      array (
        0 => 'image/x-xpixmap',
        1 => 'text/x-script.perl-module',
      ),
      'pm4' => 'application/x-pagemaker',
      'pm5' => 'application/x-pagemaker',
      'png' => 'image/png',
      'pnm' =>
      array (
        0 => 'application/x-portable-anymap',
        1 => 'image/x-portable-anymap',
      ),
      'pot' =>
      array (
        0 => 'application/mspowerpoint',
        1 => 'application/vnd.ms-powerpoint',
      ),
      'pov' => 'model/x-pov',
      'ppa' => 'application/vnd.ms-powerpoint',
      'ppm' => 'image/x-portable-pixmap',
      'pps' =>
      array (
        0 => 'application/mspowerpoint',
        1 => 'application/vnd.ms-powerpoint',
      ),
      'ppt' =>
      array (
        0 => 'application/mspowerpoint',
        1 => 'application/powerpoint',
        2 => 'application/vnd.ms-powerpoint',
        3 => 'application/x-mspowerpoint',
      ),
      'ppz' => 'application/mspowerpoint',
      'pre' => 'application/x-freelance',
      'prt' => 'application/pro_eng',
      'ps' => 'application/postscript',
      'psd' => 'application/octet-stream',
      'pvu' => 'paleovu/x-pv',
      'pwz' => 'application/vnd.ms-powerpoint',
      'py' => 'text/x-script.phyton',
      'pyc' => 'applicaiton/x-bytecode.python',
      'qcp' => 'audio/vnd.qcelp',
      'qd3' => 'x-world/x-3dmf',
      'qd3d' => 'x-world/x-3dmf',
      'qif' => 'image/x-quicktime',
      'qt' => 'video/quicktime',
      'qtc' => 'video/x-qtc',
      'qti' => 'image/x-quicktime',
      'qtif' => 'image/x-quicktime',
      'ra' =>
      array (
        0 => 'audio/x-pn-realaudio',
        1 => 'audio/x-pn-realaudio-plugin',
        2 => 'audio/x-realaudio',
      ),
      'ram' => 'audio/x-pn-realaudio',
      'ras' =>
      array (
        0 => 'application/x-cmu-raster',
        1 => 'image/cmu-raster',
        2 => 'image/x-cmu-raster',
      ),
      'rast' => 'image/cmu-raster',
      'rexx' => 'text/x-script.rexx',
      'rf' => 'image/vnd.rn-realflash',
      'rgb' => 'image/x-rgb',
      'rm' =>
      array (
        0 => 'application/vnd.rn-realmedia',
        1 => 'audio/x-pn-realaudio',
      ),
      'rmi' => 'audio/mid',
      'rmm' => 'audio/x-pn-realaudio',
      'rmp' =>
      array (
        0 => 'audio/x-pn-realaudio',
        1 => 'audio/x-pn-realaudio-plugin',
      ),
      'rng' =>
      array (
        0 => 'application/ringing-tones',
        1 => 'application/vnd.nokia.ringing-tone',
      ),
      'rnx' => 'application/vnd.rn-realplayer',
      'roff' => 'application/x-troff',
      'rp' => 'image/vnd.rn-realpix',
      'rpm' => 'audio/x-pn-realaudio-plugin',
      'rt' =>
      array (
        0 => 'text/richtext',
        1 => 'text/vnd.rn-realtext',
      ),
      'rtf' =>
      array (
        0 => 'application/rtf',
        1 => 'application/x-rtf',
        2 => 'text/richtext',
      ),
      'rtx' =>
      array (
        0 => 'application/rtf',
        1 => 'text/richtext',
      ),
      'rv' => 'video/vnd.rn-realvideo',
      's' => 'text/x-asm',
      's3m' => 'audio/s3m',
      'saveme' => 'application/octet-stream',
      'sbk' => 'application/x-tbook',
      'scm' =>
      array (
        0 => 'application/x-lotusscreencam',
        1 => 'text/x-script.guile',
        2 => 'text/x-script.scheme',
        3 => 'video/x-scm',
      ),
      'sdml' => 'text/plain',
      'sdp' =>
      array (
        0 => 'application/sdp',
        1 => 'application/x-sdp',
      ),
      'sdr' => 'application/sounder',
      'sea' =>
      array (
        0 => 'application/sea',
        1 => 'application/x-sea',
      ),
      'set' => 'application/set',
      'sgm' =>
      array (
        0 => 'text/sgml',
        1 => 'text/x-sgml',
      ),
      'sgml' =>
      array (
        0 => 'text/sgml',
        1 => 'text/x-sgml',
      ),
      'sh' =>
      array (
        0 => 'application/x-bsh',
        1 => 'application/x-sh',
        2 => 'application/x-shar',
        3 => 'text/x-script.sh',
      ),
      'shar' =>
      array (
        0 => 'application/x-bsh',
        1 => 'application/x-shar',
      ),
      'shtml' =>
      array (
        0 => 'text/html',
        1 => 'text/x-server-parsed-html',
      ),
      'sid' => 'audio/x-psid',
      'sit' =>
      array (
        0 => 'application/x-sit',
        1 => 'application/x-stuffit',
      ),
      'skd' => 'application/x-koan',
      'skm' => 'application/x-koan',
      'skp' => 'application/x-koan',
      'skt' => 'application/x-koan',
      'sl' => 'application/x-seelogo',
      'smi' => 'application/smil',
      'smil' => 'application/smil',
      'snd' =>
      array (
        0 => 'audio/basic',
        1 => 'audio/x-adpcm',
      ),
      'sol' => 'application/solids',
      'spc' =>
      array (
        0 => 'application/x-pkcs7-certificates',
        1 => 'text/x-speech',
      ),
      'spl' => 'application/futuresplash',
      'spr' => 'application/x-sprite',
      'sprite' => 'application/x-sprite',
      'src' => 'application/x-wais-source',
      'ssi' => 'text/x-server-parsed-html',
      'ssm' => 'application/streamingmedia',
      'sst' => 'application/vnd.ms-pki.certstore',
      'step' => 'application/step',
      'stl' =>
      array (
        0 => 'application/sla',
        1 => 'application/vnd.ms-pki.stl',
        2 => 'application/x-navistyle',
      ),
      'stp' => 'application/step',
      'sv4cpio' => 'application/x-sv4cpio',
      'sv4crc' => 'application/x-sv4crc',
      'svf' =>
      array (
        0 => 'image/vnd.dwg',
        1 => 'image/x-dwg',
      ),
      'svr' =>
      array (
        0 => 'application/x-world',
        1 => 'x-world/x-svr',
      ),
      'swf' => 'application/x-shockwave-flash',
      't' => 'application/x-troff',
      'talk' => 'text/x-speech',
      'tar' => 'application/x-tar',
      'tbk' =>
      array (
        0 => 'application/toolbook',
        1 => 'application/x-tbook',
      ),
      'tcl' =>
      array (
        0 => 'application/x-tcl',
        1 => 'text/x-script.tcl',
      ),
      'tcsh' => 'text/x-script.tcsh',
      'tex' => 'application/x-tex',
      'texi' => 'application/x-texinfo',
      'texinfo' => 'application/x-texinfo',
      'text' =>
      array (
        0 => 'application/plain',
        1 => 'text/plain',
      ),
      'tgz' =>
      array (
        0 => 'application/gnutar',
        1 => 'application/x-compressed',
      ),
      'tif' =>
      array (
        0 => 'image/tiff',
        1 => 'image/x-tiff',
      ),
      'tiff' =>
      array (
        0 => 'image/tiff',
        1 => 'image/x-tiff',
      ),
      'tr' => 'application/x-troff',
      'tsi' => 'audio/tsp-audio',
      'tsp' =>
      array (
        0 => 'application/dsptype',
        1 => 'audio/tsplayer',
      ),
      'tsv' => 'text/tab-separated-values',
      'turbot' => 'image/florian',
      'txt' => 'text/plain',
      'uil' => 'text/x-uil',
      'uni' => 'text/uri-list',
      'unis' => 'text/uri-list',
      'unv' => 'application/i-deas',
      'uri' => 'text/uri-list',
      'uris' => 'text/uri-list',
      'ustar' =>
      array (
        0 => 'application/x-ustar',
        1 => 'multipart/x-ustar',
      ),
      'uu' =>
      array (
        0 => 'application/octet-stream',
        1 => 'text/x-uuencode',
      ),
      'uue' => 'text/x-uuencode',
      'vcd' => 'application/x-cdlink',
      'vcs' => 'text/x-vcalendar',
      'vda' => 'application/vda',
      'vdo' => 'video/vdo',
      'vew' => 'application/groupwise',
      'viv' =>
      array (
        0 => 'video/vivo',
        1 => 'video/vnd.vivo',
      ),
      'vivo' =>
      array (
        0 => 'video/vivo',
        1 => 'video/vnd.vivo',
      ),
      'vmd' => 'application/vocaltec-media-desc',
      'vmf' => 'application/vocaltec-media-file',
      'voc' =>
      array (
        0 => 'audio/voc',
        1 => 'audio/x-voc',
      ),
      'vos' => 'video/vosaic',
      'vox' => 'audio/voxware',
      'vqe' => 'audio/x-twinvq-plugin',
      'vqf' => 'audio/x-twinvq',
      'vql' => 'audio/x-twinvq-plugin',
      'vrml' =>
      array (
        0 => 'application/x-vrml',
        1 => 'model/vrml',
        2 => 'x-world/x-vrml',
      ),
      'vrt' => 'x-world/x-vrt',
      'vsd' => 'application/x-visio',
      'vst' => 'application/x-visio',
      'vsw' => 'application/x-visio',
      'w60' => 'application/wordperfect6.0',
      'w61' => 'application/wordperfect6.1',
      'w6w' => 'application/msword',
      'wav' =>
      array (
        0 => 'audio/wav',
        1 => 'audio/x-wav',
      ),
      'wb1' => 'application/x-qpro',
      'wbmp' => 'image/vnd.wap.wbmp',
      'web' => 'application/vnd.xara',
      'wiz' => 'application/msword',
      'wk1' => 'application/x-123',
      'wmf' => 'windows/metafile',
      'wml' => 'text/vnd.wap.wml',
      'wmlc' => 'application/vnd.wap.wmlc',
      'wmls' => 'text/vnd.wap.wmlscript',
      'wmlsc' => 'application/vnd.wap.wmlscriptc',
      'word' => 'application/msword',
      'wp' => 'application/wordperfect',
      'wp5' =>
      array (
        0 => 'application/wordperfect',
        1 => 'application/wordperfect6.0',
      ),
      'wp6' => 'application/wordperfect',
      'wpd' =>
      array (
        0 => 'application/wordperfect',
        1 => 'application/x-wpwin',
      ),
      'wq1' => 'application/x-lotus',
      'wri' =>
      array (
        0 => 'application/mswrite',
        1 => 'application/x-wri',
      ),
      'wrl' =>
      array (
        0 => 'application/x-world',
        1 => 'model/vrml',
        2 => 'x-world/x-vrml',
      ),
      'wrz' =>
      array (
        0 => 'model/vrml',
        1 => 'x-world/x-vrml',
      ),
      'wsc' => 'text/scriplet',
      'wsrc' => 'application/x-wais-source',
      'wtk' => 'application/x-wintalk',
      'xbm' =>
      array (
        0 => 'image/x-xbitmap',
        1 => 'image/x-xbm',
        2 => 'image/xbm',
      ),
      'xdr' => 'video/x-amt-demorun',
      'xgz' => 'xgl/drawing',
      'xif' => 'image/vnd.xiff',
      'xl' => 'application/excel',
      'xla' =>
      array (
        0 => 'application/excel',
        1 => 'application/x-excel',
        2 => 'application/x-msexcel',
      ),
      'xlb' =>
      array (
        0 => 'application/excel',
        1 => 'application/vnd.ms-excel',
        2 => 'application/x-excel',
      ),
      'xlc' =>
      array (
        0 => 'application/excel',
        1 => 'application/vnd.ms-excel',
        2 => 'application/x-excel',
      ),
      'xld' =>
      array (
        0 => 'application/excel',
        1 => 'application/x-excel',
      ),
      'xlk' =>
      array (
        0 => 'application/excel',
        1 => 'application/x-excel',
      ),
      'xll' =>
      array (
        0 => 'application/excel',
        1 => 'application/vnd.ms-excel',
        2 => 'application/x-excel',
      ),
      'xlm' =>
      array (
        0 => 'application/excel',
        1 => 'application/vnd.ms-excel',
        2 => 'application/x-excel',
      ),
      'xls' =>
      array (
        0 => 'application/excel',
        1 => 'application/vnd.ms-excel',
        2 => 'application/x-excel',
        3 => 'application/x-msexcel',
      ),
      'xlt' =>
      array (
        0 => 'application/excel',
        1 => 'application/x-excel',
      ),
  &n

 

No comments yet

Back to articles list

This page was last modified on 2024-04-20 14:37:04