<?php
$mime_types = array(
        'acgi'  => 'text/html',
        'ai'    => 'application/postscript',
        'aif'   => 'audio/x-aiff',
        'aiff'  => 'audio/x-aiff',
        'aps'   => 'application/mime',
        'asf'   => 'video/x-ms-asf',
        'asm'   => 'text/x-asm',
        'asp'   => 'text/asp',
        'asx'   => 'video/x-ms-asf',
        'au'    => 'audio/x-au',
        'avi'   => 'video/avi',
        'avs'   => 'video/avs-video',
        'bin'   => 'application/x-binary',
        'bm'    => 'image/bmp',
        'bmp'   => 'image/bmp',
        'bsh'   => 'application/x-bsh',
        'bz'    => 'application/x-bzip',
        'bz2'   => 'application/x-bzip2',
        'c'     => 'text/x-c',
        'c++'   => 'text/plain',
        'cc'    => 'text/x-c',
        'cer'   => 'application/x-x509-ca-cert',
        'class' => 'application/java',
        'com'   => 'application/octet-stream',
        'conf'  => 'text/plain',
        'cpp'   => 'text/x-c',
        'csh'   => 'text/x-script.csh',
        'css'   => 'text/css',
        'cxx'   => 'text/plain',
        'def'   => 'text/plain',
        'dif'   => 'video/x-dv',
        'doc'   => 'application/msword',
        'dot'   => 'application/msword',
        'dump'  => 'application/octet-stream',
        'dvi'   => 'application/x-dvi',
        'eps'   => 'application/postscript',
        'exe'   => 'application/octet-stream',
        'f'     => 'text/x-fortran',
        'f77'   => 'text/x-fortran',
        'f90'   => 'text/x-fortran',
        'for'   => 'text/x-fortran',
        'gif'   => 'image/gif',
        'gtar'  => 'application/x-gtar',
        'gz'    => 'application/x-gzip',
        'gzip'  => 'multipart/x-gzip',
        'h'     => 'text/x-h',
        'hh'    => 'text/x-h',
        'hlp'   => 'application/hlp',
        'hta'   => 'application/hta',
        'htm'   => 'text/html',
        'html'  => 'text/html',
        'htmls' => 'text/html',
        'ico'   => 'image/x-icon',
        'inf'   => 'application/inf',
        'jav'   => 'text/x-java-source',
        'java'  => 'text/x-java-source',
        'jcm'   => 'application/x-java-commerce',
        'jpe'   => 'image/jpeg',
        'jpe'   => 'image/pjpeg',
        'jpeg'  => 'image/jpeg',
        'jpg'   => 'image/jpeg',
        'jps'   => 'image/x-jps',
        'js'    => 'application/x-javascript',
        'ksh'   => 'text/x-script.ksh',
        'latex' => 'application/x-latex',
        'log'   => 'text/plain',
        'm1v'   => 'video/mpeg',
        'm2a'   => 'audio/mpeg',
        'm2v'   => 'video/mpeg',
        'm3u'   => 'audio/x-mpequrl',
        'man'   => 'application/x-troff-man',
        'mht'   => 'message/rfc822',
        'mhtml' => 'message/rfc822',
        'mid'   => 'audio/midi',
        'midi'  => 'audio/midi',
        'mime'  => 'message/rfc822',
        'mp2'   => 'audio/mpeg',
        'mp3'   => 'audio/mpeg3',
        'mpeg'  => 'video/mpeg',
        'mpg'   => 'audio/mpeg',
        'o'     => 'application/octet-stream',
        'pdf'   => 'application/pdf',
        'pgm'   => 'image/x-portable-graymap',
        'pl'    => 'text/x-script.perl',
        'pm'    => 'text/x-script.perl-module',
        'pps'   => 'application/mspowerpoint',
        'ppt'   => 'application/mspowerpoint',
        'ps'    => 'application/postscript',
        'psd'   => 'application/octet-stream',
        'py'    => 'text/x-script.phyton',
        'pyc'   => 'applicaiton/x-bytecode.python',
        'rt'    => 'text/richtext',
        'rtf'   => 'text/richtext',
        's'     => 'text/x-asm',
        'sh'    => 'application/x-sh',
        'shtml' => 'text/html',
        'sid'   => 'audio/x-psid',
        'swf'   => 'application/x-shockwave-flash',
        'tex'   => 'application/x-tex',
        'tgz'   => 'application/x-compressed',
        'tif'   => 'image/tiff',
        'tiff'  => 'image/tiff',
        'uri'   => 'text/uri-list',
        'wav'   => 'audio/wav',
        'xl'    => 'application/excel',
        'xla'   => 'application/excel',
        'xlb'   => 'application/excel', 
        'xlc'   => 'application/excel', 
        'xld'   => 'application/excel',
        'xlk'   => 'application/excel',
        'xll'   => 'application/excel',
        'xlm'   => 'application/excel',
        'xls'   => 'application/excel', 
        'xlt'   => 'application/excel',
        'xlv'   => 'application/excel',
        'xlw'   => 'application/excel',
        'xm'    => 'audio/xm',
        'xml'   => 'text/xml',
        'xpm'   => 'image/xpm',
        'z'     => 'application/x-compressed',
        'zip'   => 'application/x-zip-compressed',
        'zsh'   => 'text/x-script.zsh'
);


?>



