Ver Mensaje Individual
  #2 (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. "dot" => 'application/msword',
  2.             "mxf" => 'application/mxf',
  3.             "bin" => 'application/octet-stream',
  4.             "dms" => 'application/octet-stream',
  5.             "lrf" => 'application/octet-stream',
  6.             "mar" => 'application/octet-stream',
  7.             "so" => 'application/octet-stream',
  8.             "dist" => 'application/octet-stream',
  9.             "distz" => 'application/octet-stream',
  10.             "distz" => 'application/octet-stream',
  11.             "pkg" => 'application/octet-stream',
  12.             "bpk" => 'application/octet-stream',
  13.             "dump" => 'application/octet-stream',
  14.             "elc" => 'application/octet-stream',
  15.             "deploy" => 'application/octet-stream',
  16.             "pkg" => 'application/octet-stream',
  17.             "bpk" => 'application/octet-stream',
  18.             "dump" => 'application/octet-stream',
  19.             "elc" => 'application/octet-stream',
  20.             "deploy" => 'application/octet-stream',
  21.             "oda" => 'application/oda',
  22.             "opf" => 'application/oebps-package+xml',
  23.             "ogx" => 'application/ogg',
  24.             "omdoc" => 'application/omdoc+xml',
  25.             "onetoc" => 'application/onenote',
  26.             "onetoc2" => 'application/onenote',
  27.             "onetmp" => 'application/onenote',
  28.             "onepkg" => 'application/onenote',
  29.             "oxps" => 'application/oxps',
  30.             "xer" => 'application/patch-ops-error+xml',
  31.             "pdf" => 'application/pdf',
  32.             "pgp" => 'application/pgp-encrypted',
  33.             "asc" => 'application/pgp-signature',
  34.             "sig" => 'application/pgp-signature',
  35.             "prf" => 'application/pics-rules',
  36.             "p10" => 'application/pkcs10',
  37.             "p7m" => 'application/pkcs7-mime',
  38.             "p7c" => 'application/pkcs7-mime',
  39.             "p7s" => 'application/pkcs7-signature',
  40.             "p8" => 'application/pkcs8',
  41.             "ac" => 'application/pkix-attr-cert',
  42.             "cer" => 'application/pkix-cert',
  43.             "crl" => 'application/pkix-crl',
  44.             "pkipath" => 'application/pkix-pkipath',
  45.             "pki" => 'application/pkixcmp',
  46.             "pls" => 'application/pls+xml',
  47.             "ai" => 'application/postscript',
  48.             "eps" => 'application/postscript',
  49.             "ps" => 'application/postscript',
  50.             "cww" => 'application/prs.cww',
  51.             "pskcxml" => 'application/pskc+xml',
  52.             "rdf" => 'application/rdf+xml',
  53.             "rif" => 'application/reginfo+xml',
  54.             "rnc" => 'application/relax-ng-compact-syntax',
  55.             "rl" => 'application/resource-lists+xml',
  56.             "rld" => 'application/resource-lists-diff+xml',
  57.             "rs" => 'application/rls-services+xml',
  58.             "gbr" => 'application/rpki-ghostbusters',
  59.             "mft" => 'application/rpki-manifest',
  60.             "roa" => 'application/rpki-roa',
  61.             "rsd" => 'application/rsd+xml',
  62.             "rss" => 'application/rss+xml',
  63.             "rtf" => 'application/rtf',
  64.             "sbml" => 'application/sbml+xml',
  65.             "scq" => 'application/scvp-cv-request',
  66.             "scs" => 'application/scvp-cv-response',
  67.             "spq" => 'application/scvp-vp-request',
  68.             "spp" => 'application/scvp-vp-response',
  69.             "sdp" => 'application/sdp',
  70.             "setpay" => 'application/set-payment-initiation',
  71.             "setreg" => 'application/set-registration-initiation',
  72.             "shf" => 'application/shf+xml',
  73.             "smi" => 'application/smil+xml',
  74.             "smil" => 'application/smil+xml',
  75.             "rq" => 'application/sparql-query',
  76.             "srx" => 'application/sparql-results+xml',
  77.             "gram" => 'application/srgs',
  78.             "grxml" => 'application/srgs+xml',
  79.             "sru" => 'application/sru+xml',
  80.             "ssdl" => 'application/ssdl+xml',
  81.             "ssml" => 'application/ssml+xml',
  82.             "tei" => 'application/tei+xml',
  83.             "teicorpus" => 'application/tei+xml',
  84.             "tfi" => 'application/thraud+xml',
  85.             "tsd" => 'application/timestamped-data',
  86.             "plb" => 'application/vnd.3gpp.pic-bw-large',
  87.             "psb" => 'application/vnd.3gpp.pic-bw-small',
  88.             "pvb" => 'application/vnd.3gpp.pic-bw-var',
  89.             "tcap" => 'application/vnd.3gpp2.tcap',
  90.             "pwn" => 'application/vnd.3m.post-it-notes',
  91.             "aso" => 'application/vnd.accpac.simply.aso',
  92.             "imp" => 'application/vnd.accpac.simply.imp',
  93.             "acu" => 'application/vnd.acucobol',
  94.             "atc" => 'application/vnd.acucorp',
  95.             "acutc" => 'application/vnd.acucorp',
  96.             "air" => 'application/vnd.adobe.air-application-installer-package+zip',
  97.             "fcdt" => 'application/vnd.adobe.formscentral.fcdt',
  98.             "fxp" => 'application/vnd.adobe.fxp',
  99.             "fxpl" => 'application/vnd.adobe.fxp',
  100.             "xdp" => 'application/vnd.adobe.xdp+xml',
  101.             "xfdf" => 'application/vnd.adobe.xfdf',
  102.             "ahead" => 'application/vnd.ahead.space',
  103.             "azf" => 'application/vnd.airzip.filesecure.azf',
  104.             "azs" => 'application/vnd.airzip.filesecure.azs',
  105.             "azw" => 'application/vnd.amazon.ebook',
  106.             "acc" => 'application/vnd.americandynamics.acc',
  107.             "ami" => 'application/vnd.amiga.ami',
  108.             "apk" => 'application/vnd.android.package-archive',
  109.             "cii" => 'application/vnd.anser-web-certificate-issue-initiation',
  110.             "fti" => 'application/vnd.anser-web-funds-transfer-initiation',
  111.             "atx" => 'application/vnd.antix.game-component',
  112.             "mpkg" => 'application/vnd.apple.installer+xml',
  113.             "m3u8" => 'application/vnd.apple.mpegurl',
  114.             "swi" => 'application/vnd.aristanetworks.swi',
  115.             "iota" => 'application/vnd.astraea-software.iota',
  116.             "aep" => 'application/vnd.audiograph',
  117.             "mpm" => 'application/vnd.blueice.multipass',
  118.             "bmi" => 'application/vnd.bmi',
  119.             "rep" => 'application/vnd.businessobjects',
  120.             "cdxml" => 'application/vnd.chemdraw+xml',
  121.             "mmd" => 'application/vnd.chipnuts.karaoke-mmd',
  122.             "cdy" => 'application/vnd.cinderella',
  123.             "cla" => 'application/vnd.claymore',
  124.             "rp9" => 'application/vnd.cloanto.rp9',
  125.             "c4g" => 'application/vnd.clonk.c4group',
  126.             "c4d" => 'application/vnd.clonk.c4group',
  127.             "c4f" => 'application/vnd.clonk.c4group',
  128.             "c4p" => 'application/vnd.clonk.c4group',
  129.             "c4u" => 'application/vnd.clonk.c4group',
  130.             "c11amc" => 'application/vnd.cluetrust.cartomobile-config',
  131.             "c11amz" => 'application/vnd.cluetrust.cartomobile-config-pkg',
  132.             "csp" => 'application/vnd.commonspace',
  133.             "cdbcmsg" => 'application/vnd.contact.cmsg',
  134.             "cmc" => 'application/vnd.cosmocaller',
  135.             "clkx" => 'application/vnd.crick.clicker',
  136.             "clkk" => 'application/vnd.crick.clicker.keyboard',
  137.             "clkp" => 'application/vnd.crick.clicker.palette',
  138.             "clkt" => 'application/vnd.crick.clicker.template',
  139.             "clkw" => 'application/vnd.crick.clicker.wordbank',
  140.             "wbs" => 'application/vnd.criticaltools.wbs+xml',
  141.             "pml" => 'application/vnd.ctc-posml',
  142.             "ppd" => 'application/vnd.cups-ppd',
  143.             "car" => 'application/vnd.curl.car',
  144.             "pcurl" => 'application/vnd.curl.pcurl',
  145.             "dart" => 'application/vnd.dart',
  146.             "rdz" => 'application/vnd.data-vision.rdz',
  147.             "uvf" => 'application/vnd.dece.data',
  148.             "uvvf" => 'application/vnd.dece.data',
  149.             "uvd" => 'application/vnd.dece.data',
  150.             "uvvd" => 'application/vnd.dece.data',
  151.             "uvt" => 'application/vnd.dece.ttml+xml',
  152.             "uvvt" => 'application/vnd.dece.ttml+xml',
  153.             "uvx" => 'application/vnd.dece.unspecified',
  154.             "uvvx" => 'application/vnd.dece.unspecified',
  155.             "uvz" => 'application/vnd.dece.zip',
  156.             "uvvz" => 'application/vnd.dece.zip',
  157.             "fe_launch" => 'application/vnd.denovo.fcselayout-link',
  158.             "dna" => 'application/vnd.dna',
  159.             "mlp" => 'application/vnd.dolby.mlp',
  160.             "dpg" => 'application/vnd.dpgraph',
  161.             "dfac" => 'application/vnd.dreamfactory',
  162.             "kpxx" => 'application/vnd.ds-keypoint',
  163.             "ait" => 'application/vnd.dvb.ait',
  164.             "svc" => 'application/vnd.dvb.service',
  165.             "geo" => 'application/vnd.dynageo',
  166.             "mag" => 'application/vnd.ecowin.chart',
  167.             "nml" => 'application/vnd.enliven',
  168.             "esf" => 'application/vnd.epson.esf',
  169.             "msf" => 'application/vnd.epson.msf',
  170.             "qam" => 'application/vnd.epson.quickanime',
  171.             "slt" => 'application/vnd.epson.salt',
  172.             "ssf" => 'application/vnd.epson.ssf',
  173.             "es3" => 'application/vnd.eszigno3+xml',
  174.             "et3" => 'application/vnd.eszigno3+xml',
  175.             "ez2" => 'application/vnd.ezpix-album',
  176.             "ez3" => 'application/vnd.ezpix-package',
  177.             "fdf" => 'application/vnd.fdf',
  178.             "mseed" => 'application/vnd.fdsn.mseed',
  179.             "seed" => 'application/vnd.fdsn.seed',
  180.             "dataless" => 'application/vnd.fdsn.seed',
  181.             "gph" => 'application/vnd.flographit',
  182.             "ftc" => 'application/vnd.fluxtime.clip',
  183.             "fm" => 'application/vnd.framemaker',
  184.             "frame" => 'application/vnd.framemaker',
  185.             "maker" => 'application/vnd.framemaker',
  186.             "book" => 'application/vnd.framemaker',
  187.             "fnc" => 'application/vnd.frogans.fnc',
  188.             "ltf" => 'application/vnd.frogans.ltf',
  189.             "fsc" => 'application/vnd.fsc.weblaunch',
  190.             "oas" => 'application/vnd.fujitsu.oasys',
  191.             "oa2" => 'application/vnd.fujitsu.oasys2',
  192.             "oa3" => 'application/vnd.fujitsu.oasys3',
  193.             "fg5" => 'application/vnd.fujitsu.oasysgp',
  194.             "bh2" => 'application/vnd.fujitsu.oasysprs',
  195.             "ddd" => 'application/vnd.fujixerox.ddd',
  196.             "xdw" => 'application/vnd.fujixerox.docuworks',
  197.             "xbd" => 'application/vnd.fujixerox.docuworks.binder',
  198.             "fzs" => 'application/vnd.fuzzysheet',
  199.             "txd" => 'application/vnd.genomatix.tuxedo',
  200.             "ggb" => 'application/vnd.geogebra.file',
  201.             "ggt" => 'application/vnd.geogebra.tool',
  202.             "gex" => 'application/vnd.geometry-explorer',
  203.             "gre" => 'application/vnd.geometry-explorer',
  204.             "gxt" => 'application/vnd.geonext',
  205.             "g2w" => 'application/vnd.geoplan',
  206.             "g3w" => 'application/vnd.geospace',
  207.             "gmx" => 'application/vnd.gmx',
__________________
Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios