当前位置:Gxlcms > PHP教程 > phpheaderContent-Type类型小结_php基础

phpheaderContent-Type类型小结_php基础

时间:2021-07-01 10:21:17 帮助过:7人阅读

代码如下:
  1. <br><!--?php <BR-->$mimetypes = array( <br>'ez' => 'application/andrew-inset', <br>'hqx' => 'application/mac-binhex40', <br>'cpt' => 'application/mac-compactpro', <br>'doc' => 'application/msword', <br>'bin' => 'application/octet-stream', <br>'dms' => 'application/octet-stream', <br>'lha' => 'application/octet-stream', <br>'lzh' => 'application/octet-stream', <br>'exe' => 'application/octet-stream', <br>'class' => 'application/octet-stream', <br>'so' => 'application/octet-stream', <br>'dll' => 'application/octet-stream', <br>'oda' => 'application/oda', <br>'pdf' => 'application/pdf', <br>'ai' => 'application/postscript', <br>'eps' => 'application/postscript', <br>'ps' => 'application/postscript', <br>'smi' => 'application/smil', <br>'smil' => 'application/smil', <br>'mif' => 'application/vnd.mif', <br>'xls' => 'application/vnd.ms-excel', <br>'ppt' => 'application/vnd.ms-powerpoint', <br>'wbxml' => 'application/vnd.wap.wbxml', <br>'wmlc' => 'application/vnd.wap.wmlc', <br>'wmlsc' => 'application/vnd.wap.wmlscriptc', <br>'bcpio' => 'application/x-bcpio', <br>'vcd' => 'application/x-cdlink', <br>'pgn' => 'application/x-chess-pgn', <br>'cpio' => 'application/x-cpio', <br>'csh' => 'application/x-csh', <br>'dcr' => 'application/x-director', <br>'dir' => 'application/x-director', <br>'dxr' => 'application/x-director', <br>'dvi' => 'application/x-dvi', <br>'spl' => 'application/x-futuresplash', <br>'gtar' => 'application/x-gtar', <br>'hdf' => 'application/x-hdf', <br>'js' => 'application/x-javascript', <br>'skp' => 'application/x-koan', <br>'skd' => 'application/x-koan', <br>'skt' => 'application/x-koan', <br>'skm' => 'application/x-koan', <br>'latex' => 'application/x-latex', <br>'nc' => 'application/x-netcdf', <br>'cdf' => 'application/x-netcdf', <br>'sh' => 'application/x-sh', <br>'shar' => 'application/x-shar', <br>'swf' => 'application/x-shockwave-flash', <br>'sit' => 'application/x-stuffit', <br>'sv4cpio' => 'application/x-sv4cpio', <br>'sv4crc' => 'application/x-sv4crc', <br>'tar' => 'application/x-tar', <br>'tcl' => 'application/x-tcl', <br>'tex' => 'application/x-tex', <br>'texinfo' => 'application/x-texinfo', <br>'texi' => 'application/x-texinfo', <br>'t' => 'application/x-troff', <br>'tr' => 'application/x-troff', <br>'roff' => 'application/x-troff', <br>'man' => 'application/x-troff-man', <br>'me' => 'application/x-troff-me', <br>'ms' => 'application/x-troff-ms', <br>'ustar' => 'application/x-ustar', <br>'src' => 'application/x-wais-source', <br>'xhtml' => 'application/xhtml+xml', <br>'xht' => 'application/xhtml+xml', <br>'zip' => 'application/zip', <br>'au' => 'audio/basic', <br>'snd' => 'audio/basic', <br>'mid' => 'audio/midi', <br>'midi' => 'audio/midi', <br>'kar' => 'audio/midi', <br>'mpga' => 'audio/mpeg', <br>'mp2' => 'audio/mpeg', <br>'mp3' => 'audio/mpeg', <br>'aif' => 'audio/x-aiff', <br>'aiff' => 'audio/x-aiff', <br>'aifc' => 'audio/x-aiff', <br>'m3u' => 'audio/x-mpegurl', <br>'ram' => 'audio/x-pn-realaudio', <br>'rm' => 'audio/x-pn-realaudio', <br>'rpm' => 'audio/x-pn-realaudio-plugin', <br>'ra' => 'audio/x-realaudio', <br>'wav' => 'audio/x-wav', <br>'pdb' => 'chemical/x-pdb', <br>'xyz' => 'chemical/x-xyz', <br>'bmp' => 'image/bmp', <br>'gif' => 'image/gif', <br>'ief' => 'image/ief', <br>'jpeg' => 'image/jpeg', <br>'jpg' => 'image/jpeg', <br>'jpe' => 'image/jpeg', <br>'png' => 'image/png', <br>'tiff' => 'image/tiff', <br>'tif' => 'image/tiff', <br>'djvu' => 'image/vnd.djvu', <br>'djv' => 'image/vnd.djvu', <br>'wbmp' => 'image/vnd.wap.wbmp', <br>'ras' => 'image/x-cmu-raster', <br>'pnm' => 'image/x-portable-anymap', <br>'pbm' => 'image/x-portable-bitmap', <br>'pgm' => 'image/x-portable-graymap', <br>'ppm' => 'image/x-portable-pixmap', <br>'rgb' => 'image/x-rgb', <br>'xbm' => 'image/x-xbitmap', <br>'xpm' => 'image/x-xpixmap', <br>'xwd' => 'image/x-xwindowdump', <br>'igs' => 'model/iges', <br>'iges' => 'model/iges', <br>'msh' => 'model/mesh', <br>'mesh' => 'model/mesh', <br>'silo' => 'model/mesh', <br>'wrl' => 'model/vrml', <br>'vrml' => 'model/vrml', <br>'css' => 'text/css', <br>'html' => 'text/html', <br>'htm' => 'text/html', <br>'asc' => 'text/plain', <br>'txt' => 'text/plain', <br>'rtx' => 'text/richtext', <br>'rtf' => 'text/rtf', <br>'sgml' => 'text/sgml', <br>'sgm' => 'text/sgml', <br>'tsv' => 'text/tab-separated-values', <br>'wml' => 'text/vnd.wap.wml', <br>'wmls' => 'text/vnd.wap.wmlscript', <br>'etx' => 'text/x-setext', <br>'xsl' => 'text/xml', <br>'xml' => 'text/xml', <br>'mpeg' => 'video/mpeg', <br>'mpg' => 'video/mpeg', <br>'mpe' => 'video/mpeg', <br>'qt' => 'video/quicktime', <br>'mov' => 'video/quicktime', <br>'mxu' => 'video/vnd.mpegurl', <br>'avi' => 'video/x-msvideo', <br>'movie' => 'video/x-sgi-movie', <br>'ice' => 'x-conference/x-cooltalk', <br>); <br>?> <br>

人气教程排行