Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/10/2012, 15:25
Avatar de NSD
NSD
Colaborador
 
Fecha de Ingreso: mayo-2012
Ubicación: Somewhere
Mensajes: 1.332
Antigüedad: 12 años, 6 meses
Puntos: 320
Respuesta: [[[APORTE]]] Funcion para obtener Mime

Código PHP:
Ver original
  1. "kml" => 'application/vnd.google-earth.kml+xml',
  2.             "kmz" => 'application/vnd.google-earth.kmz',
  3.             "gqf" => 'application/vnd.grafeq',
  4.             "gqs" => 'application/vnd.grafeq',
  5.             "gac" => 'application/vnd.groove-account',
  6.             "ghf" => 'application/vnd.groove-help',
  7.             "gim" => 'application/vnd.groove-identity-message',
  8.             "grv" => 'application/vnd.groove-injector',
  9.             "gtm" => 'application/vnd.groove-tool-message',
  10.             "tpl" => 'application/vnd.groove-tool-template',
  11.             "vcg" => 'application/vnd.groove-vcard',
  12.             "hal" => 'application/vnd.hal+xml',
  13.             "zmm" => 'application/vnd.handheld-entertainment+xml',
  14.             "hbci" => 'application/vnd.hbci',
  15.             "les" => 'application/vnd.hhe.lesson-player',
  16.             "hpgl" => 'application/vnd.hp-hpgl',
  17.             "hpid" => 'application/vnd.hp-hpid',
  18.             "hps" => 'application/vnd.hp-hps',
  19.             "jlt" => 'application/vnd.hp-jlyt',
  20.             "pcl" => 'application/vnd.hp-pcl',
  21.             "pclxl" => 'application/vnd.hp-pclxl',
  22.             "sfd-hdstx" => 'application/vnd.hydrostatix.sof-data',
  23.             "mpy" => 'application/vnd.ibm.minipay',
  24.             "afp" => 'application/vnd.ibm.modcap',
  25.             "oxt" => 'application/vnd.openofficeorg.extension',
  26.             "pptx" => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
  27.             "sldx" => 'application/vnd.openxmlformats-officedocument.presentationml.slide',
  28.             "ppsx" => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
  29.             "potx" => 'application/vnd.openxmlformats-officedocument.presentationml.template',
  30.             "xlsx" => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  31.             "xltx" => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
  32.             "docx" => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  33.             "dotx" => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
  34.             "mgp" => 'application/vnd.osgeo.mapguide.package',
  35.             "dp" => 'application/vnd.osgi.dp',
  36.             "esa" => 'application/vnd.osgi.subsystem',
  37.             "pdb" => 'application/vnd.palm',
  38.             "pqa" => 'application/vnd.palm',
  39.             "oprc" => 'application/vnd.palm',
  40.             "paw" => 'application/vnd.pawaafile',
  41.             "str" => 'application/vnd.pg.format',
  42.             "ei6" => 'application/vnd.pg.osasli',
  43.             "efif" => 'application/vnd.picsel',
  44.             "wg" => 'application/vnd.pmi.widget',
  45.             "plf" => 'application/vnd.pocketlearn',
  46.             "pbd" => 'application/vnd.powerbuilder6',
  47.             "box" => 'application/vnd.previewsystems.box',
  48.             "mgz" => 'application/vnd.proteus.magazine',
  49.             "qps" => 'application/vnd.publishare-delta-tree',
  50.             "ptid" => 'application/vnd.pvi.ptid1',
  51.             "qxd" => 'application/vnd.quark.quarkxpress',
  52.             "qxt" => 'application/vnd.quark.quarkxpress',
  53.             "qwd" => 'application/vnd.quark.quarkxpress',
  54.             "qwt" => 'application/vnd.quark.quarkxpress',
  55.             "qxl" => 'application/vnd.quark.quarkxpress',
  56.             "qxb" => 'application/vnd.quark.quarkxpress',
  57.             "bed" => 'application/vnd.realvnc.bed',
  58.             "mxl" => 'application/vnd.recordare.musicxml',
  59.             "musicxml" => 'application/vnd.recordare.musicxml+xml',
  60.             "cryptonote" => 'application/vnd.rig.cryptonote',
  61.             "cod" => 'application/vnd.rim.cod',
  62.             "rm" => 'application/vnd.rn-realmedia',
  63.             "rmvb" => 'application/vnd.rn-realmedia-vbr',
  64.             "link66" => 'application/vnd.route66.link66+xml',
  65.             "st" => 'application/vnd.sailingtracker.track',
  66.             "see" => 'application/vnd.seemail',
  67.             "sema" => 'application/vnd.sema',
  68.             "semd" => 'application/vnd.semd',
  69.             "semf" => 'application/vnd.semf',
  70.             "ifm" => 'application/vnd.shana.informed.formdata',
  71.             "itp" => 'application/vnd.shana.informed.formtemplate',
  72.             "iif" => 'application/vnd.shana.informed.interchange',
  73.             "ipk" => 'application/vnd.shana.informed.package',
  74.             "twd" => 'application/vnd.simtech-mindmapper',
  75.             "twds" => 'application/vnd.simtech-mindmapper',
  76.             "mmf" => 'application/vnd.smaf',
  77.             "teacher" => 'application/vnd.smart.teacher',
  78.             "sdkm" => 'application/vnd.solent.sdkm+xml',
  79.             "sdkd" => 'application/vnd.solent.sdkm+xml',
  80.             "dxp" => 'application/vnd.spotfire.dxp',
  81.             "sfs" => 'application/vnd.spotfire.sfs',
  82.             "sdc" => 'application/vnd.stardivision.calc',
  83.             "sda" => 'application/vnd.stardivision.draw',
  84.             "sdd" => 'application/vnd.stardivision.impress',
  85.             "smf" => 'application/vnd.stardivision.math',
  86.             "sdw" => 'application/vnd.stardivision.writer',
  87.             "vor" => 'application/vnd.stardivision.writer',
  88.             "sgl" => 'application/vnd.stardivision.writer-global',
  89.             "smzip" => 'application/vnd.stepmania.package',
  90.             "sm" => 'application/vnd.stepmania.stepchart',
  91.             "sxc" => 'application/vnd.sun.xml.calc',
  92.             "stc" => 'application/vnd.sun.xml.calc.template',
  93.             "sxd" => 'application/vnd.sun.xml.draw',
  94.             "std" => 'application/vnd.sun.xml.draw.template',
  95.             "sxi" => 'application/vnd.sun.xml.impress',
  96.             "sti" => 'application/vnd.sun.xml.impress.template',
  97.             "sxm" => 'application/vnd.sun.xml.math',
  98.             "sxw" => 'application/vnd.sun.xml.writer',
  99.             "sxg" => 'application/vnd.sun.xml.writer.global',
  100.             "stw" => 'application/vnd.sun.xml.writer.template',
  101.             "sus" => 'application/vnd.sus-calendar',
  102.             "susp" => 'application/vnd.sus-calendar',
  103.             "svd" => 'application/vnd.svd',
  104.             "sis" => 'application/vnd.symbian.install',
  105.             "sisx" => 'application/vnd.symbian.install',
  106.             "xsm" => 'application/vnd.syncml+xml',
  107.             "bdm" => 'application/vnd.syncml.dm+wbxml',
  108.             "xdm" => 'application/vnd.syncml.dm+xml',
  109.             "tao" => 'application/vnd.tao.intent-module-archive',
  110.             "pcap" => 'application/vnd.tcpdump.pcap',
  111.             "cap" => 'application/vnd.tcpdump.pcap',
  112.             "dmp" => 'application/vnd.tcpdump.pcap',
  113.             "tmo" => 'application/vnd.tmobile-livetv',
  114.             "tpt" => 'application/vnd.trid.tpt',
  115.             "mxs" => 'application/vnd.triscape.mxs',
  116.             "tra" => 'application/vnd.trueapp',
  117.             "ufd" => 'application/vnd.ufdl',
  118.             "ufdl" => 'application/vnd.ufdl',
  119.             "utz" => 'application/vnd.uiq.theme',
  120.             "umj" => 'application/vnd.umajin',
  121.             "unityweb" => 'application/vnd.unity',
  122.             "uoml" => 'application/vnd.uoml+xml',
  123.             "vcx" => 'application/vnd.vcx',
  124.             "vsd" => 'application/vnd.visio',
  125.             "vst" => 'application/vnd.visio',
  126.             "vss" => 'application/vnd.visio',
  127.             "vsw" => 'application/vnd.visio',
  128.             "vis" => 'application/vnd.visionary',
  129.             "vsf" => 'application/vnd.vsf',
  130.             "wbxml" => 'application/vnd.wap.wbxml',
  131.             "wmlc" => 'application/vnd.wap.wmlc',
  132.             "wmlsc" => 'application/vnd.wap.wmlscriptc',
  133.             "wtb" => 'application/vnd.webturbo',
  134.             "nbp" => 'application/vnd.wolfram.player',
  135.             "wpd" => 'application/vnd.wordperfect',
  136.             "wqd" => 'application/vnd.wqd',
  137.             "stf" => 'application/vnd.wt.stf',
  138.             "xar" => 'application/vnd.xara',
  139.             "xfdl" => 'application/vnd.xfdl',
  140.             "hvd" => 'application/vnd.yamaha.hv-dic',
  141.             "hvs" => 'application/vnd.yamaha.hv-script',
  142.             "hvp" => 'application/vnd.yamaha.hv-voice',
  143.             "osf" => 'application/vnd.yamaha.openscoreformat',
  144.             "osfpvg" => 'application/vnd.yamaha.openscoreformat.osfpvg+xml',
  145.             "saf" => 'application/vnd.yamaha.smaf-audio',
  146.             "spf" => 'application/vnd.yamaha.smaf-phrase',
  147.             "cmp" => 'application/vnd.yellowriver-custom-menu',
  148.             "zir" => 'application/vnd.zul',
  149.             "zirz" => 'application/vnd.zul',
  150.             "zaz" => 'application/vnd.zzazz.deck+xml',
  151.             "wgt" => 'application/widget',
  152.             "hlp" => 'application/winhlp',
  153.             "wsdl" => 'application/wsdl+xml',
  154.             "wspolicy" => 'application/wspolicy+xml',
  155.             "7z" => 'application/x-7z-compressed',
  156.             "abw" => 'application/x-abiword',
  157.             "ace" => 'application/x-ace-compressed',
  158.             "dmg" => 'application/x-apple-diskimage',
  159.             "aab" => 'application/x-authorware-bin',
  160.             "x32" => 'application/x-authorware-bin',
  161.             "u32" => 'application/x-authorware-bin',
  162.             "vox" => 'application/x-authorware-bin',
  163.             "aam" => 'application/x-authorware-map',
  164.             "aas" => 'application/x-authorware-seg',
  165.             "bcpio" => 'application/x-bcpio',
  166.             "torrent" => 'application/x-bittorrent',
  167.             "blb" => 'application/x-blorb',
  168.             "blorb" => 'application/x-blorb',
  169.             "bz" => 'application/x-bzip',
  170.             "bz2" => 'application/x-bzip2',
  171.             "boz" => 'application/x-bzip2',
  172.             "cbr" => 'application/x-cbr',
  173.             "cba" => 'application/x-cbr',
  174.             "cbt" => 'application/x-cbr',
  175.             "cbz" => 'application/x-cbr',
  176.             "cb7" => 'application/x-cbr',
  177.             "vcd" => 'application/x-cdlink',
  178.             "cfs" => 'application/x-cfs-compressed',
  179.             "chat" => 'application/x-chat',
  180.             "pgn" => 'application/x-chess-pgn',
  181.             "nsc" => 'application/x-conference',
  182.             "cpio" => 'application/x-cpio',
  183.             "csh" => 'application/x-csh',
  184.             "deb" => 'application/x-debian-package',
  185.             "udeb" => 'application/x-debian-package',
  186.             "dgc" => 'application/x-dgc-compressed',
  187.             "dir" => 'application/x-director',
  188.             "dcr" => 'application/x-director',
  189.             "dxr" => 'application/x-director',
  190.             "cst" => 'application/x-director',
  191.             "cct" => 'application/x-director',
  192.             "cxt" => 'application/x-director',
  193.             "w3d" => 'application/x-director',
  194.             "fgd" => 'application/x-director',
  195.             "swa" => 'application/x-director',
  196.             "wad" => 'application/x-doom',
  197.             "ncx" => 'application/x-dtbncx+xml',
  198.             "dtb" => 'application/x-dtbook+xml',
  199.             "res" => 'application/x-dtbresource+xml',
  200.             "dvi" => 'application/x-dvi',
  201.             "evy" => 'application/x-envoy',
  202.             "eva" => 'application/x-eva',
  203.             "bdf" => 'application/x-font-bdf',
  204.             "gsf" => 'application/x-font-ghostscript',
  205.             "psf" => 'application/x-font-linux-psf',
  206.             "otf" => 'application/x-font-otf',
  207.             "pcf" => 'application/x-font-pcf',
  208.             "snf" => 'application/x-font-snf',
  209.             "ttf" => 'application/x-font-ttf',
  210.             "ttc" => 'application/x-font-ttf',
  211.             "pfa" => 'application/x-font-type1',
  212.             "pfb" => 'application/x-font-type1',
  213.             "pfm" => 'application/x-font-type1',
  214.             "afm" => 'application/x-font-type1',
  215.             "woff" => 'application/x-font-woff',
__________________
Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios