Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
MimeExtension.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Return extension from mime type
8  *
9  * @author Anakeen
10  * @version $Id: MimeExtension.php,v 1.1 2007/11/14 14:51:39 eric Exp $
11  * @package FDL
12  * @subpackage CORE
13  */
14 /**
15  */
16 # MIME type Extension
17 function getExtensions()
18 {
19  return array(
20  "application/EDI-Consent" => "",
21  "application/EDI-X12" => "",
22  "application/EDIFACT" => "",
23  "application/activemessage" => "",
24  "application/andrew-inset" => "ez",
25  "application/applefile" => "",
26  "application/atomicmail" => "",
27  "application/batch-SMTP" => "",
28  "application/beep+xml" => "",
29  "application/cals-1840" => "",
30  "application/commonground" => "",
31  "application/cybercash" => "",
32  "application/dca-rft" => "",
33  "application/dec-dx" => "",
34  "application/dvcs" => "",
35  "application/eshop" => "",
36  "application/http" => "",
37  "application/hyperstudio" => "",
38  "application/iges" => "",
39  "application/index" => "",
40  "application/index.cmd" => "",
41  "application/index.obj" => "",
42  "application/index.response" => "",
43  "application/index.vnd" => "",
44  "application/iotp" => "",
45  "application/ipp" => "",
46  "application/isup" => "",
47  "application/font-tdpfr" => "",
48  "application/mac-binhex40" => "hqx",
49  "application/mac-compactpro" => "cpt",
50  "application/macwriteii" => "",
51  "application/marc" => "",
52  "application/mathematica" => "",
53  "application/mathematica-old" => "",
54  "application/msword" => "doc",
55  "application/news-message-id" => "",
56  "application/news-transmission" => "",
57  "application/ocsp-request" => "",
58  "application/ocsp-response" => "",
59  "application/octet-stream" => "bin dms lha lzh exe class so dll img iso",
60  "application/ogg" => "ogg",
61  "application/parityfec" => "",
62  "application/pdf" => "pdf",
63  "application/pgp-encrypted" => "",
64  "application/pgp-keys" => "",
65  "application/pgp-signature" => "",
66  "application/pkcs10" => "",
67  "application/pkcs7-mime" => "",
68  "application/pkcs7-signature" => "",
69  "application/pkix-cert" => "",
70  "application/pkix-crl" => "",
71  "application/pkixcmp" => "",
72  "application/postscript" => "ai eps ps",
73  "application/prs.alvestrand.titrax-sheet" => "",
74  "application/prs.cww" => "",
75  "application/prs.nprend" => "",
76  "application/qsig" => "",
77  "application/remote-printing" => "",
78  "application/riscos" => "",
79  "application/rtf" => "rtf",
80  "application/sdp" => "",
81  "application/set-payment" => "",
82  "application/set-payment-initiation" => "",
83  "application/set-registration" => "",
84  "application/set-registration-initiation" => "",
85  "application/sgml" => "",
86  "application/sgml-open-catalog" => "",
87  "application/sieve" => "",
88  "application/slate" => "",
89  "application/smil" => "smi smil",
90  "application/timestamp-query" => "",
91  "application/timestamp-reply" => "",
92  "application/vemmi" => "",
93  "application/vnd.3M.Post-it-Notes" => "",
94  "application/vnd.FloGraphIt" => "",
95  "application/vnd.accpac.simply.aso" => "",
96  "application/vnd.accpac.simply.imp" => "",
97  "application/vnd.acucobol" => "",
98  "application/vnd.aether.imp" => "",
99  "application/vnd.anser-web-certificate-issue-initiation" => "",
100  "application/vnd.anser-web-funds-transfer-initiation" => "",
101  "application/vnd.audiograph" => "",
102  "application/vnd.businessobjects" => "",
103  "application/vnd.bmi" => "",
104  "application/vnd.canon-cpdl" => "",
105  "application/vnd.canon-lips" => "",
106  "application/vnd.claymore" => "",
107  "application/vnd.commerce-battelle" => "",
108  "application/vnd.commonspace" => "",
109  "application/vnd.comsocaller" => "",
110  "application/vnd.contact.cmsg" => "",
111  "application/vnd.cosmocaller" => "",
112  "application/vnd.cups-postscript" => "",
113  "application/vnd.cups-raster" => "",
114  "application/vnd.cups-raw" => "",
115  "application/vnd.ctc-posml" => "",
116  "application/vnd.cybank" => "",
117  "application/vnd.dna" => "",
118  "application/vnd.dpgraph" => "",
119  "application/vnd.dxr" => "",
120  "application/vnd.ecdis-update" => "",
121  "application/vnd.ecowin.chart" => "",
122  "application/vnd.ecowin.filerequest" => "",
123  "application/vnd.ecowin.fileupdate" => "",
124  "application/vnd.ecowin.series" => "",
125  "application/vnd.ecowin.seriesrequest" => "",
126  "application/vnd.ecowin.seriesupdate" => "",
127  "application/vnd.enliven" => "",
128  "application/vnd.epson.esf" => "",
129  "application/vnd.epson.msf" => "",
130  "application/vnd.epson.quickanime" => "",
131  "application/vnd.epson.salt" => "",
132  "application/vnd.epson.ssf" => "",
133  "application/vnd.ericsson.quickcall" => "",
134  "application/vnd.eudora.data" => "",
135  "application/vnd.fdf" => "",
136  "application/vnd.ffsns" => "",
137  "application/vnd.framemaker" => "",
138  "application/vnd.fsc.weblaunch" => "",
139  "application/vnd.fujitsu.oasys" => "",
140  "application/vnd.fujitsu.oasys2" => "",
141  "application/vnd.fujitsu.oasys3" => "",
142  "application/vnd.fujitsu.oasysgp" => "",
143  "application/vnd.fujitsu.oasysprs" => "",
144  "application/vnd.fujixerox.ddd" => "",
145  "application/vnd.fujixerox.docuworks" => "",
146  "application/vnd.fujixerox.docuworks.binder" => "",
147  "application/vnd.fut-misnet" => "",
148  "application/vnd.grafeq" => "",
149  "application/vnd.groove-account" => "",
150  "application/vnd.groove-identity-message" => "",
151  "application/vnd.groove-injector" => "",
152  "application/vnd.groove-tool-message" => "",
153  "application/vnd.groove-tool-template" => "",
154  "application/vnd.groove-vcard" => "",
155  "application/vnd.hhe.lesson-player" => "",
156  "application/vnd.hp-HPGL" => "",
157  "application/vnd.hp-PCL" => "",
158  "application/vnd.hp-PCLXL" => "",
159  "application/vnd.hp-hpid" => "",
160  "application/vnd.hp-hps" => "",
161  "application/vnd.httphone" => "",
162  "application/vnd.hzn-3d-crossword" => "",
163  "application/vnd.ibm.afplinedata" => "",
164  "application/vnd.ibm.MiniPay" => "",
165  "application/vnd.ibm.modcap" => "",
166  "application/vnd.informix-visionary" => "",
167  "application/vnd.intercon.formnet" => "",
168  "application/vnd.intertrust.digibox" => "",
169  "application/vnd.intertrust.nncp" => "",
170  "application/vnd.intu.qbo" => "",
171  "application/vnd.intu.qfx" => "",
172  "application/vnd.irepository.package+xml" => "",
173  "application/vnd.is-xpr" => "",
174  "application/vnd.japannet-directory-service" => "",
175  "application/vnd.japannet-jpnstore-wakeup" => "",
176  "application/vnd.japannet-payment-wakeup" => "",
177  "application/vnd.japannet-registration" => "",
178  "application/vnd.japannet-registration-wakeup" => "",
179  "application/vnd.japannet-setstore-wakeup" => "",
180  "application/vnd.japannet-verification" => "",
181  "application/vnd.japannet-verification-wakeup" => "",
182  "application/vnd.koan" => "",
183  "application/vnd.lotus-1-2-3" => "",
184  "application/vnd.lotus-approach" => "",
185  "application/vnd.lotus-freelance" => "",
186  "application/vnd.lotus-notes" => "",
187  "application/vnd.lotus-organizer" => "",
188  "application/vnd.lotus-screencam" => "",
189  "application/vnd.lotus-wordpro" => "",
190  "application/vnd.mcd" => "",
191  "application/vnd.mediastation.cdkey" => "",
192  "application/vnd.meridian-slingshot" => "",
193  "application/vnd.mif" => "mif",
194  "application/vnd.minisoft-hp3000-save" => "",
195  "application/vnd.mitsubishi.misty-guard.trustweb" => "",
196  "application/vnd.mobius.daf" => "",
197  "application/vnd.mobius.dis" => "",
198  "application/vnd.mobius.msl" => "",
199  "application/vnd.mobius.plc" => "",
200  "application/vnd.mobius.txf" => "",
201  "application/vnd.motorola.flexsuite" => "",
202  "application/vnd.motorola.flexsuite.adsi" => "",
203  "application/vnd.motorola.flexsuite.fis" => "",
204  "application/vnd.motorola.flexsuite.gotap" => "",
205  "application/vnd.motorola.flexsuite.kmr" => "",
206  "application/vnd.motorola.flexsuite.ttc" => "",
207  "application/vnd.motorola.flexsuite.wem" => "",
208  "application/vnd.mozilla.xul+xml" => "",
209  "application/vnd.ms-artgalry" => "",
210  "application/vnd.ms-asf" => "",
211  "application/vnd.ms-excel" => "xls",
212  "application/vnd.ms-lrm" => "",
213  "application/vnd.ms-powerpoint" => "ppt",
214  "application/vnd.ms-project" => "",
215  "application/vnd.ms-tnef" => "",
216  "application/vnd.ms-works" => "",
217  "application/vnd.mseq" => "",
218  "application/vnd.msign" => "",
219  "application/vnd.music-niff" => "",
220  "application/vnd.musician" => "",
221  "application/vnd.netfpx" => "",
222  "application/vnd.noblenet-directory" => "",
223  "application/vnd.noblenet-sealer" => "",
224  "application/vnd.noblenet-web" => "",
225  "application/vnd.novadigm.EDM" => "",
226  "application/vnd.novadigm.EDX" => "",
227  "application/vnd.novadigm.EXT" => "",
228  "application/vnd.oasis.opendocument.chart" => "odc",
229  "application/vnd.oasis.opendocument.database" => "odb",
230  "application/vnd.oasis.opendocument.formula" => "odf",
231  "application/vnd.oasis.opendocument.graphics" => "odg",
232  "application/vnd.oasis.opendocument.graphics-template" => "otg",
233  "application/vnd.oasis.opendocument.image" => "odi",
234  "application/vnd.oasis.opendocument.presentation" => "odp",
235  "application/vnd.oasis.opendocument.presentation-template" => "otp",
236  "application/vnd.oasis.opendocument.spreadsheet" => "ods",
237  "application/vnd.oasis.opendocument.spreadsheet-template" => "ots",
238  "application/vnd.oasis.opendocument.text" => "odt",
239  "application/vnd.oasis.opendocument.text-master" => "odm",
240  "application/vnd.oasis.opendocument.text-template" => "ott",
241  "application/vnd.oasis.opendocument.text-web" => "oth",
242  "application/vnd.osa.netdeploy" => "",
243  "application/vnd.palm" => "",
244  "application/vnd.pg.format" => "",
245  "application/vnd.pg.osasli" => "",
246  "application/vnd.powerbuilder6" => "",
247  "application/vnd.powerbuilder6-s" => "",
248  "application/vnd.powerbuilder7" => "",
249  "application/vnd.powerbuilder7-s" => "",
250  "application/vnd.powerbuilder75" => "",
251  "application/vnd.powerbuilder75-s" => "",
252  "application/vnd.previewsystems.box" => "",
253  "application/vnd.publishare-delta-tree" => "",
254  "application/vnd.pvi.ptid1" => "",
255  "application/vnd.pwg-xhtml-print+xml" => "",
256  "application/vnd.rapid" => "",
257  "application/vnd.s3sms" => "",
258  "application/vnd.seemail" => "",
259  "application/vnd.shana.informed.formdata" => "",
260  "application/vnd.shana.informed.formtemplate" => "",
261  "application/vnd.shana.informed.interchange" => "",
262  "application/vnd.shana.informed.package" => "",
263  "application/vnd.sss-cod" => "",
264  "application/vnd.sss-dtf" => "",
265  "application/vnd.sss-ntf" => "",
266  "application/vnd.street-stream" => "",
267  "application/vnd.sun.xml.writer" => "sxw",
268  "application/vnd.sun.xml.writer.template" => "stw",
269  "application/vnd.sun.xml.calc" => "sxc",
270  "application/vnd.sun.xml.calc.template" => "stc",
271  "application/vnd.sun.xml.draw" => "sxd",
272  "application/vnd.sun.xml.draw.template" => "std",
273  "application/vnd.sun.xml.impress" => "sxi",
274  "application/vnd.sun.xml.impress.template" => "sti",
275  "application/vnd.sun.xml.writer.global" => "sxg",
276  "application/vnd.sun.xml.math" => "sxm",
277  "application/vnd.svd" => "",
278  "application/vnd.swiftview-ics" => "",
279  "application/vnd.symbian.install" => "sis",
280  "application/vnd.triscape.mxs" => "",
281  "application/vnd.trueapp" => "",
282  "application/vnd.truedoc" => "",
283  "application/vnd.tve-trigger" => "",
284  "application/vnd.ufdl" => "",
285  "application/vnd.uplanet.alert" => "",
286  "application/vnd.uplanet.alert-wbxml" => "",
287  "application/vnd.uplanet.bearer-choice-wbxml" => "",
288  "application/vnd.uplanet.bearer-choice" => "",
289  "application/vnd.uplanet.cacheop" => "",
290  "application/vnd.uplanet.cacheop-wbxml" => "",
291  "application/vnd.uplanet.channel" => "",
292  "application/vnd.uplanet.channel-wbxml" => "",
293  "application/vnd.uplanet.list" => "",
294  "application/vnd.uplanet.list-wbxml" => "",
295  "application/vnd.uplanet.listcmd" => "",
296  "application/vnd.uplanet.listcmd-wbxml" => "",
297  "application/vnd.uplanet.signal" => "",
298  "application/vnd.vcx" => "",
299  "application/vnd.vectorworks" => "",
300  "application/vnd.vidsoft.vidconference" => "",
301  "application/vnd.visio" => "",
302  "application/vnd.vividence.scriptfile" => "",
303  "application/vnd.wap.sic" => "",
304  "application/vnd.wap.slc" => "",
305  "application/vnd.wap.wbxml" => "wbxml",
306  "application/vnd.wap.wmlc" => "wmlc",
307  "application/vnd.wap.wmlscriptc" => "wmlsc",
308  "application/vnd.webturbo" => "",
309  "application/vnd.wrq-hp3000-labelled" => "",
310  "application/vnd.wt.stf" => "",
311  "application/vnd.xara" => "",
312  "application/vnd.xfdl" => "",
313  "application/vnd.yellowriver-custom-menu" => "",
314  "application/whoispp-query" => "",
315  "application/whoispp-response" => "",
316  "application/wita" => "",
317  "application/wordperfect5.1" => "",
318  "application/x-bcpio" => "bcpio",
319  "application/x-bittorrent" => "torrent",
320  "application/x-bzip2" => "bz2",
321  "application/x-cdlink" => "vcd",
322  "application/x-chess-pgn" => "pgn",
323  "application/x-compress" => "",
324  "application/x-cpio" => "cpio",
325  "application/x-csh" => "csh",
326  "application/x-director" => "dcr dir dxr",
327  "application/x-dvi" => "dvi",
328  "application/x-futuresplash" => "spl",
329  "application/x-gtar" => "gtar",
330  "application/x-gzip" => "gz tgz",
331  "application/x-hdf" => "hdf",
332  "application/x-java-archive" => "jar",
333  "application/x-java-jnlp-file" => "jnlp",
334  "application/x-javascript" => "js",
335  "application/x-kword" => "kwd kwt",
336  "application/x-kspread" => "ksp",
337  "application/x-kpresenter" => "kpr kpt",
338  "application/x-kchart" => "chrt",
339  "application/x-killustrator" => "kil",
340  "application/x-koan" => "skp skd skt skm",
341  "application/x-latex" => "latex",
342  "application/x-netcdf" => "nc cdf",
343  "application/x-rpm" => "rpm",
344  "application/x-sh" => "sh",
345  "application/x-shar" => "shar",
346  "application/x-shockwave-flash" => "swf",
347  "application/x-stuffit" => "sit",
348  "application/x-sv4cpio" => "sv4cpio",
349  "application/x-sv4crc" => "sv4crc",
350  "application/x-tar" => "tar",
351  "application/x-tcl" => "tcl",
352  "application/x-tex" => "tex",
353  "application/x-texinfo" => "texinfo texi",
354  "application/x-troff" => "t tr roff",
355  "application/x-troff-man" => "man",
356  "application/x-troff-me" => "me",
357  "application/x-troff-ms" => "ms",
358  "application/x-ustar" => "ustar",
359  "application/x-wais-source" => "src",
360  "application/x400-bp" => "",
361  "application/xhtml+xml" => "xhtml xht",
362  "application/xml" => "",
363  "application/xml-dtd" => "",
364  "application/xml-external-parsed-entity" => "",
365  "application/zip" => "zip",
366  "audio/32kadpcm" => "",
367  "audio/basic" => "au snd",
368  "audio/g.722.1" => "",
369  "audio/l16" => "",
370  "audio/midi" => "mid midi kar",
371  "audio/mp4a-latm" => "",
372  "audio/mpa-robust" => "",
373  "audio/mpeg" => "mpga mp2 mp3",
374  "audio/parityfec" => "",
375  "audio/prs.sid" => "",
376  "audio/telephone-event" => "",
377  "audio/tone" => "",
378  "audio/vnd.cisco.nse" => "",
379  "audio/vnd.cns.anp1" => "",
380  "audio/vnd.cns.inf1" => "",
381  "audio/vnd.digital-winds" => "",
382  "audio/vnd.everad.plj" => "",
383  "audio/vnd.lucent.voice" => "",
384  "audio/vnd.nortel.vbk" => "",
385  "audio/vnd.nuera.ecelp4800" => "",
386  "audio/vnd.nuera.ecelp7470" => "",
387  "audio/vnd.nuera.ecelp9600" => "",
388  "audio/vnd.octel.sbc" => "",
389  "audio/vnd.qcelp" => "",
390  "audio/vnd.rhetorex.32kadpcm" => "",
391  "audio/vnd.vmx.cvsd" => "",
392  "audio/x-aiff" => "aif aiff aifc",
393  "audio/x-mpegurl" => "m3u",
394  "audio/x-pn-realaudio" => "ram rm",
395  "#audio/x-pn-realaudio-plugin" => "rpm",
396  "audio/x-realaudio" => "ra",
397  "audio/x-wav" => "wav",
398  "audio/x-ms-wma" => "wma",
399  "audio/x-ms-wax" => "wax",
400  "chemical/x-pdb" => "pdb",
401  "chemical/x-xyz" => "xyz",
402  "image/bmp" => "bmp",
403  "image/cgm" => "",
404  "image/g3fax" => "",
405  "image/gif" => "gif",
406  "image/ief" => "ief",
407  "image/jpeg" => "jpeg jpg jpe",
408  "image/naplps" => "",
409  "image/png" => "png",
410  "image/prs.btif" => "",
411  "image/prs.pti" => "",
412  "image/tiff" => "tiff tif",
413  "image/vnd.cns.inf2" => "",
414  "image/vnd.djvu" => "djvu djv",
415  "image/vnd.dwg" => "",
416  "image/vnd.dxf" => "",
417  "image/vnd.fastbidsheet" => "",
418  "image/vnd.fpx" => "",
419  "image/vnd.fst" => "",
420  "image/vnd.fujixerox.edmics-mmr" => "",
421  "image/vnd.fujixerox.edmics-rlc" => "",
422  "image/vnd.mix" => "",
423  "image/vnd.net-fpx" => "",
424  "image/vnd.svf" => "",
425  "image/vnd.wap.wbmp" => "wbmp",
426  "image/vnd.xiff" => "",
427  "image/x-cmu-raster" => "ras",
428  "image/x-portable-anymap" => "pnm",
429  "image/x-portable-bitmap" => "pbm",
430  "image/x-portable-graymap" => "pgm",
431  "image/x-portable-pixmap" => "ppm",
432  "image/x-rgb" => "rgb",
433  "image/x-xbitmap" => "xbm",
434  "image/x-xpixmap" => "xpm",
435  "image/x-xwindowdump" => "xwd",
436  "message/delivery-status" => "",
437  "message/disposition-notification" => "",
438  "message/external-body" => "",
439  "message/http" => "",
440  "message/news" => "",
441  "message/partial" => "",
442  "message/rfc822" => "",
443  "message/s-http" => "",
444  "model/iges" => "igs iges",
445  "model/mesh" => "msh mesh silo",
446  "model/vnd.dwf" => "",
447  "model/vnd.flatland.3dml" => "",
448  "model/vnd.gdl" => "",
449  "model/vnd.gs-gdl" => "",
450  "model/vnd.gtw" => "",
451  "model/vnd.mts" => "",
452  "model/vnd.vtu" => "",
453  "model/vrml" => "wrl vrml",
454  "multipart/alternative" => "",
455  "multipart/appledouble" => "",
456  "multipart/byteranges" => "",
457  "multipart/digest" => "",
458  "multipart/encrypted" => "",
459  "multipart/form-data" => "",
460  "multipart/header-set" => "",
461  "multipart/mixed" => "",
462  "multipart/parallel" => "",
463  "multipart/related" => "",
464  "multipart/report" => "",
465  "multipart/signed" => "",
466  "multipart/voice-message" => "",
467  "text/calendar" => "",
468  "text/css" => "css",
469  "text/directory" => "",
470  "text/enriched" => "",
471  "text/html" => "html htm",
472  "text/parityfec" => "",
473  "text/plain" => "asc txt",
474  "text/prs.lines.tag" => "",
475  "text/rfc822-headers" => "",
476  "text/richtext" => "rtx",
477  "text/rtf" => "rtf",
478  "text/sgml" => "sgml sgm",
479  "text/tab-separated-values" => "tsv",
480  "text/t140" => "",
481  "text/uri-list" => "",
482  "text/vnd.DMClientScript" => "",
483  "text/vnd.IPTC.NITF" => "",
484  "text/vnd.IPTC.NewsML" => "",
485  "text/vnd.abc" => "",
486  "text/vnd.curl" => "",
487  "text/vnd.flatland.3dml" => "",
488  "text/vnd.fly" => "",
489  "text/vnd.fmi.flexstor" => "",
490  "text/vnd.in3d.3dml" => "",
491  "text/vnd.in3d.spot" => "",
492  "text/vnd.latex-z" => "",
493  "text/vnd.motorola.reflex" => "",
494  "text/vnd.ms-mediapackage" => "",
495  "text/vnd.sun.j2me.app-descriptor" => "jad",
496  "text/vnd.wap.si" => "",
497  "text/vnd.wap.sl" => "",
498  "text/vnd.wap.wml" => "wml",
499  "text/vnd.wap.wmlscript" => "wmls",
500  "text/x-setext" => "etx",
501  "text/xml" => "xml xsl",
502  "text/xml-external-parsed-entity" => "",
503  "video/mp4v-es" => "",
504  "video/mpeg" => "mpeg mpg mpe",
505  "video/parityfec" => "",
506  "video/pointer" => "",
507  "video/quicktime" => "qt mov",
508  "video/vnd.fvt" => "",
509  "video/vnd.motorola.video" => "",
510  "video/vnd.motorola.videop" => "",
511  "video/vnd.mpegurl" => "mxu",
512  "video/vnd.mts" => "",
513  "video/vnd.nokia.interleaved-multimedia" => "",
514  "video/vnd.vivo" => "",
515  "video/x-flv" => "flv",
516  "video/x-ms-asf" => "asf asx",
517  "video/x-ms-wm" => "wm",
518  "video/x-ms-wmv" => "wmv",
519  "video/x-ms-wmx" => "wmx",
520  "video/x-ms-wvx" => "wvx",
521  "video/x-msvideo" => "avi",
522  "video/x-sgi-movie" => "movie",
523  "x-conference/x-cooltalk" => "ice"
524  );
525 };
526 ?>
getExtensions()
← centre documentaire © anakeen