PHP文件格式数组

news/2024/7/8 3:47:57
一个文件格式对应的数组
$mime_types = array(
'gif' => 'image/gif',
'jpg' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'jpe' => 'image/jpeg',
'bmp' => 'image/bmp',
'png' => 'image/png',
'tif' => 'image/tiff',
'tiff' => 'image/tiff',
'pict' => 'image/x-pict',
'pic' => 'image/x-pict',
'pct' => 'image/x-pict',
'tif' => 'image/tiff',
'tiff' => 'image/tiff',
'psd' => 'image/x-photoshop',
'swf' => 'application/x-shockwave-flash',
'js' => 'application/x-javascript',
'pdf' => 'application/pdf',
'ps' => 'application/postscript',
'eps' => 'application/postscript',
'ai' => 'application/postscript',
'wmf' => 'application/x-msmetafile',
'css' => 'text/css',
'htm' => 'text/html',
'html' => 'text/html',
'txt' => 'text/plain',
'xml' => 'text/xml',
'wml' => 'text/wml',
'wbmp' => 'image/vnd.wap.wbmp',
'mid' => 'audio/midi',
'wav' => 'audio/wav',
'mp3' => 'audio/mpeg',
'mp2' => 'audio/mpeg',
'avi' => 'video/x-msvideo',
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
'lha' => 'application/x-lha',
'lzh' => 'application/x-lha',
'z' => 'application/x-compress',
'gtar' => 'application/x-gtar',
'gz' => 'application/x-gzip',
'gzip' => 'application/x-gzip',
'tgz' => 'application/x-gzip',
'tar' => 'application/x-tar',
'bz2' => 'application/bzip2',
'zip' => 'application/zip',
'arj' => 'application/x-arj',
'rar' => 'application/x-rar-compressed',
'hqx' => 'application/mac-binhex40',
'sit' => 'application/x-stuffit',
'bin' => 'application/x-macbinary',
'uu' => 'text/x-uuencode',
'uue' => 'text/x-uuencode',
'latex'=> 'application/x-latex',
'ltx' => 'application/x-latex',
'tcl' => 'application/x-tcl',
'pgp' => 'application/pgp',
'asc' => 'application/pgp',
'exe' => 'application/x-msdownload',
'doc' => 'application/msword',
'rtf' => 'application/rtf',
'xls' => 'application/vnd.ms-excel',
'ppt' => 'application/vnd.ms-powerpoint',
'mdb' => 'application/x-msaccess',
'wri' => 'application/x-mswrite',
);
 

 

转载于:https://www.cnblogs.com/Itwonderful/p/5525818.html


http://www.niftyadmin.cn/n/3376015.html

相关文章

visifire3.6.8 去水印方法

visifire 很NB的一套开源图表 不多介绍 详询google 3.0以下版本可以直接继承Chart类 override 加水印的函数就可以, 3.0以上版本需要自己编译源代码 这个水印函数藏得有点深 在visifireControl.cs里 protected virtual void LoadWm(){ // CreateWmElement(…

在SQLSERVER中创建聚集索引

CREATE CLUSTERED INDEX CLUSTER_id ON TABLE_name(ID)------批量转载于:https://www.cnblogs.com/kunlunmountain/p/5527234.html

Tomcat部署web应用的方式

对Tomcat部署web应用的方式总结,常见的有以下四种:1、【使用控制台部署】 访问Http://localhost:8080,并通过Tomcat Manager登录,进入部署界面即可。2、【利用Tomcat自动部署】 将应用程序复制到Tomcat的…

[转]getHibernateTemplate出现的所有find方法的总结

一、find(String queryString); 示例:this.getHibernateTemplate().find("from bean.User"); 返回所有User对象 二、find(String queryString , Object value); 示例:this.getHibernateTemplate().find("from bean.User u where u.name?…

基于ArcGIS API for JavaScript的统计图表实现

感谢原作者分享:https://github.com/shevchenhe/ChartLayer,在使用的过程中,需要自己进行调试修改,主要还是_draw函数,不同的ArcGIS JS API函数有差异,会出错。 首先是是扩展GraphicLayer dojo.provide(&qu…

[数据挖掘]chimerge算法

数据离散化数据离散化的一种常用方法是依据数据的相关性程度进行离散化,最常见的算法就是ChiMerge算法定义chimerge是基于chi-squre的,监督的,自底向上(合并的)一种数据离散化方法。卡方检验xyzAx1y1z1aBx2y2z2bxyzN统…

Linux的Samba服务器

1.samba服务器概述 Samba最先在Linux和windows两平台之间架起一座桥梁,正是由于samba的出现,我们可以在Linux系统和Windows系统之间相互通信,比如拷贝文件,实现不同操作系统之间的资源共享等等。 使用的NetBIOS overTCP/IP 【Netw…

Json字符串与字典互转

#pragma mark 转换json字符串 (NSString *)toJSON:(id)aParam { NSData *jsonData[NSJSONSerialization dataWithJSONObject:aParam options:NSJSONWritingPrettyPrinted error:nil]; NSString *jsonStr[[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncodi…