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

Código PHP:
Ver original
  1. "arc" => 'application/x-freearc',
  2.             "spl" => 'application/x-futuresplash',
  3.             "gca" => 'application/x-gca-compressed',
  4.             "ulx" => 'application/x-glulx',
  5.             "gnumeric" => 'application/x-gnumeric',
  6.             "gramps" => 'application/x-gramps-xml',
  7.             "gtar" => 'application/x-gtar',
  8.             "hdf" => 'application/x-hdf',
  9.             "install" => 'application/x-install-instructions',
  10.             "iso" => 'application/x-iso9660-image',
  11.             "jnlp" => 'application/x-java-jnlp-file',
  12.             "latex" => 'application/x-latex',
  13.             "lzh" => 'application/x-lzh-compressed',
  14.             "lha" => 'application/x-lzh-compressed',
  15.             "mie" => 'application/x-mie',
  16.             "prc" => 'application/x-mobipocket-ebook',
  17.             "mobi" => 'application/x-mobipocket-ebook',
  18.             "application" => 'application/x-ms-application',
  19.             "lnk" => 'application/x-ms-shortcut',
  20.             "wmd" => 'application/x-ms-wmd',
  21.             "wmz" => 'application/x-ms-wmz',
  22.             "xbap" => 'application/x-ms-xbap',
  23.             "mdb" => 'application/x-msaccess',
  24.             "obd" => 'application/x-msbinder',
  25.             "crd" => 'application/x-mscardfile',
  26.             "clp" => 'application/x-msclip',
  27.             "exe" => 'application/x-msdownload',
  28.             "dll" => 'application/x-msdownload',
  29.             "com" => 'application/x-msdownload',
  30.             "bat" => 'application/x-msdownload',
  31.             "msi" => 'application/x-msdownload',
  32.             "mvb" => 'application/x-msmediaview',
  33.             "m13" => 'application/x-msmediaview',
  34.             "m14" => 'application/x-msmediaview',
  35.             "wmf" => 'application/x-msmetafile',
  36.             "wmz" => 'application/x-msmetafile',
  37.             "emf" => 'application/x-msmetafile',
  38.             "emz" => 'application/x-msmetafile',
  39.             "mny" => 'application/x-msmoney',
  40.             "pub" => 'application/x-mspublisher',
  41.             "scd" => 'application/x-msschedule',
  42.             "trm" => 'application/x-msterminal',
  43.             "wri" => 'application/x-mswrite',
  44.             "nc" => 'application/x-netcdf',
  45.             "cdf" => 'application/x-netcdf',
  46.             "nzb" => 'application/x-nzb',
  47.             "p12" => 'application/x-pkcs12',
  48.             "pfx" => 'application/x-pkcs12',
  49.             "p7b" => 'application/x-pkcs7-certificates',
  50.             "spc" => 'application/x-pkcs7-certificates',
  51.             "p7r" => 'application/x-pkcs7-certreqresp',
  52.             "rar" => 'application/x-rar-compressed',
  53.             "ris" => 'application/x-research-info-systems',
  54.             "sh" => 'application/x-sh',
  55.             "shar" => 'application/x-shar',
  56.             "swf" => 'application/x-shockwave-flash',
  57.             "xap" => 'application/x-silverlight-app',
  58.             "sql" => 'application/x-sql',
  59.             "sit" => 'application/x-stuffit',
  60.             "sitx" => 'application/x-stuffitx',
  61.             "srt" => 'application/x-subrip',
  62.             "sv4cpio" => 'application/x-sv4cpio',
  63.             "sv4crc" => 'application/x-sv4crc',
  64.             "t3" => 'application/x-t3vm-image',
  65.             "gam" => 'application/x-tads',
  66.             "tar" => 'application/x-tar',
  67.             "tcl" => 'application/x-tcl',
  68.             "tex" => 'application/x-tex',
  69.             "tfm" => 'application/x-tex-tfm',
  70.             "texinfo" => 'application/x-texinfo',
  71.             "texi" => 'application/x-texinfo',
  72.             "obj" => 'application/x-tgif',
  73.             "ustar" => 'application/x-ustar',
  74.             "src" => 'application/x-wais-source',
  75.             "der" => 'application/x-x509-ca-cert',
  76.             "crt" => 'application/x-x509-ca-cert',
  77.             "fig" => 'application/x-xfig',
  78.             "xlf" => 'application/x-xliff+xml',
  79.             "xpi" => 'application/x-xpinstall',
  80.             "xz" => 'application/x-xz',
  81.             "z1" => 'application/x-zmachine',
  82.             "z2" => 'application/x-zmachine',
  83.             "z3" => 'application/x-zmachine',
  84.             "z4" => 'application/x-zmachine',
  85.             "z5" => 'application/x-zmachine',
  86.             "z6" => 'application/x-zmachine',
  87.             "z7" => 'application/x-zmachine',
  88.             "z8" => 'application/x-zmachine',
  89.             "xaml" => 'application/xaml+xml',
  90.             "xdf" => 'application/xcap-diff+xml',
  91.             "xenc" => 'application/xenc+xml',
  92.             "xhtml" => 'application/xhtml+xml',
  93.             "xht" => 'application/xhtml+xml',
  94.             "xml" => 'application/xml',
  95.             "xsl" => 'application/xml',
  96.             "dtd" => 'application/xml-dtd',
  97.             "xop" => 'application/xop+xml',
  98.             "xpl" => 'application/xproc+xml',
  99.             "xslt" => 'application/xslt+xml',
  100.             "xspf" => 'application/xspf+xml',
  101.             "mxml" => 'application/xv+xml',
  102.             "xhvml" => 'application/xv+xml',
  103.             "xvml" => 'application/xv+xml',
  104.             "xvm" => 'application/xv+xml',
  105.             "yang" => 'application/yang',
  106.             "yin" => 'application/yin+xml',
  107.             "zip" => 'application/zip',
  108.             "adp" => 'audio/adpcm',
  109.             "au" => 'audio/basic',
  110.             "snd" => 'audio/basic',
  111.             "mid" => 'audio/midi',
  112.             "midi" => 'audio/midi',
  113.             "kar" => 'audio/midi',
  114.             "rmi" => 'audio/midi',
  115.             "mp4a" => 'audio/mp4',
  116.             "mpga" => 'audio/mpeg',
  117.             "mp2" => 'audio/mpeg',
  118.             "mp2a" => 'audio/mpeg',
  119.             "mp3" => 'audio/mpeg',
  120.             "m2a" => 'audio/mpeg',
  121.             "m3a" => 'audio/mpeg',
  122.             "oga" => 'audio/ogg',
  123.             "ogg" => 'audio/ogg',
  124.             "spx" => 'audio/ogg',
  125.             "s3m" => 'audio/s3m',
  126.             "sil" => 'audio/silk',
  127.             "uva" => 'audio/vnd.dece.audio',
  128.             "uvva" => 'audio/vnd.dece.audio',
  129.             "eol" => 'audio/vnd.digital-winds',
  130.             "dra" => 'audio/vnd.dra',
  131.             "dts" => 'audio/vnd.dts',
  132.             "dtshd" => 'audio/vnd.dts.hd',
  133.             "lvp" => 'audio/vnd.lucent.voice',
  134.             "pya" => 'audio/vnd.ms-playready.media.pya',
  135.             "ecelp4800" => 'audio/vnd.nuera.ecelp4800',
  136.             "ecelp7470" => 'audio/vnd.nuera.ecelp7470',
  137.             "ecelp9600" => 'audio/vnd.nuera.ecelp9600',
  138.             "weba" => 'audio/webm',
  139.             "aac" => 'audio/x-aac',
  140.             "aif" => 'audio/x-aiff',
  141.             "aiff" => 'audio/x-aiff',
  142.             "aifc" => 'audio/x-aiff',
  143.             "caf" => 'audio/x-caf',
  144.             "flac" => 'audio/x-flac',
  145.             "mka" => 'audio/x-matroska',
  146.             "m3u" => 'audio/x-mpegurl',
  147.             "wax" => 'audio/x-ms-wax',
  148.             "wma" => 'audio/x-ms-wma',
  149.             "ram" => 'audio/x-pn-realaudio',
  150.             "ra" => 'audio/x-pn-realaudio',
  151.             "rmp" => 'audio/x-pn-realaudio-plugin',
  152.             "wav" => 'audio/x-wav',
  153.             "xm" => 'audio/xm',
  154.             "cdx" => 'chemical/x-cdx',
  155.             "cif" => 'chemical/x-cif',
  156.             "cmdf" => 'chemical/x-cmdf',
  157.             "cml" => 'chemical/x-cml',
  158.             "csml" => 'chemical/x-csml',
  159.             "xyz" => 'chemical/x-xyz',
  160.             "bmp" => 'image/bmp',
  161.             "cgm" => 'image/cgm',
  162.             "g3" => 'image/g3fax',
  163.             "gif" => 'image/gif',
  164.             "ief" => 'image/ief',
  165.             "jpeg" => 'image/jpeg',
  166.             "jpg" => 'image/jpeg',
  167.             "jpe" => 'image/jpeg',
  168.             "ktx" => 'image/ktx',
  169.             "png" => 'image/png',
  170.             "btif" => 'image/prs.btif',
  171.             "sgi" => 'image/sgi',
  172.             "svg" => 'image/svg+xml',
  173.             "svgz" => 'image/svg+xml',
  174.             "tiff" => 'image/tiff',
  175.             "tif" => 'image/tiff',
  176.             "psd" => 'image/vnd.adobe.photoshop',
  177.             "uvi" => 'image/vnd.dece.graphic',
  178.             "uvvi" => 'image/vnd.dece.graphic',
  179.             "uvg" => 'image/vnd.dece.graphic',
  180.             "uvvg" => 'image/vnd.dece.graphic',
  181.             "sub" => 'text/vnd.dvb.subtitle',
  182.             "djvu" => 'image/vnd.djvu',
  183.             "djv" => 'image/vnd.djvu',
  184.             "dwg" => 'image/vnd.dwg',
  185.             "dxf" => 'image/vnd.dxf',
  186.             "fbs" => 'image/vnd.fastbidsheet',
  187.             "fpx" => 'image/vnd.fpx',
  188.             "fst" => 'image/vnd.fst',
  189.             "mmr" => 'image/vnd.fujixerox.edmics-mmr',
  190.             "rlc" => 'image/vnd.fujixerox.edmics-rlc',
  191.             "mdi" => 'image/vnd.ms-modi',
  192.             "wdp" => 'image/vnd.ms-photo',
  193.             "npx" => 'image/vnd.net-fpx',
  194.             "wbmp" => 'image/vnd.wap.wbmp',
  195.             "xif" => 'image/vnd.xiff',
  196.             "webp" => 'image/webp',
  197.             "3ds" => 'image/x-3ds',
  198.             "ras" => 'image/x-cmu-raster',
  199.             "cmx" => 'image/x-cmx',
  200.             "fh" => 'image/x-freehand',
  201.             "fhc" => 'image/x-freehand',
  202.             "fh4" => 'image/x-freehand',
  203.             "fh5" => 'image/x-freehand',
  204.             "fh7" => 'image/x-freehand',
  205.             "ico" => 'image/x-icon',
  206.             "sid" => 'image/x-mrsid-image',
  207.             "pcx" => 'image/x-pcx',
  208.             "pic" => 'image/x-pict',
  209.             "pct" => 'image/x-pict',
  210.             "pnm" => 'image/x-portable-anymap',
  211.             "pbm" => 'image/x-portable-bitmap',
  212.             "pgm" => 'image/x-portable-graymap',
  213.             "ppm" => 'image/x-portable-pixmap',
  214.             "rgb" => 'image/x-rgb',
  215.             "tga" => 'image/x-tga',
  216.             "xbm" => 'image/x-xbitmap',
  217.             "xpm" => 'image/x-xpixmap',
  218.             "xwd" => 'image/x-xwindowdump',
  219.             "eml" => 'message/rfc822',
  220.             "mime" => 'message/rfc822',
  221.             "igs" => 'model/iges',
  222.             "iges" => 'model/iges',
  223.             "msh" => 'model/mesh',
  224.             "mesh" => 'model/mesh',
  225.             "silo" => 'model/mesh',
  226.             "dae" => 'model/vnd.collada+xml',
  227.             "dwf" => 'model/vnd.dwf',
  228.             "gdl" => 'model/vnd.gdl',
  229.             "gtw" => 'model/vnd.gtw',
  230.             "mts" => 'model/vnd.mts',
  231.             "vtu" => 'model/vnd.vtu',
  232.             "wrl" => 'model/vrml',
  233.             "vrml" => 'model/vrml',
  234.             "x3db" => 'model/x3d+binary',
  235.             "x3dbz" => 'model/x3d+binary',
  236.             "x3dv" => 'model/x3d+vrml',
  237.             "x3dvz" => 'model/x3d+vrml',
  238.             "x3d" => 'model/x3d+xml',
  239.             "x3dz" => 'model/x3d+xml',
  240.             "appcache" => 'text/cache-manifest',
  241.             "ics" => 'text/calendar',
  242.             "ifb" => 'text/calendar',
  243.             "css" => 'text/css',
  244.             "csv" => 'text/csv',
  245.             "html" => 'text/html',
  246.             "htm" => 'text/html',
  247.             "n3" => 'text/n3',
  248.             "txt" => 'text/plain',
  249.             "text" => 'text/plain',
  250.             "conf" => 'text/plain',
  251.             "def" => 'text/plain',
  252.             "list" => 'text/plain',
  253.             "log" => 'text/plain',
  254.             "in" => 'text/plain',
  255.             "dsc" => 'text/prs.lines.tag',
  256.             "rtx" => 'text/richtext',
  257.             "sgml" => 'text/sgml',
  258.             "sgm" => 'text/sgml',
  259.             "tsv" => 'text/tab-separated-values',
  260.             "t" => 'text/troff',
  261.             "tr" => 'text/troff',
  262.             "roff" => 'text/troff',
  263.             "man" => 'text/troff',
  264.             "me" => 'text/troff',
  265.             "ms" => 'text/troff',
  266.             "ttl" => 'text/turtle',
  267.             "uri" => 'text/uri-list',
  268.             "uris" => 'text/uri-list',
  269.             "urls" => 'text/uri-list',
  270.             "vcard" => 'text/vcard',
  271.             "curl" => 'text/vnd.curl',
  272.             "dcurl" => 'text/vnd.curl.dcurl',
  273.             "scurl" => 'text/vnd.curl.scurl',
  274.             "mcurl" => 'text/vnd.curl.mcurl',
  275.             "fly" => 'text/vnd.fly',
  276.             "flx" => 'text/vnd.fmi.flexstor',
  277.             "gv" => 'text/vnd.graphviz',
  278.             "3dml" => 'text/vnd.in3d.3dml',
  279.             "spot" => 'text/vnd.in3d.spot',
  280.             "jad" => 'text/vnd.sun.j2me.app-descriptor',
  281.             "wml" => 'text/vnd.wap.wml',
  282.             "wmls" => 'text/vnd.wap.wmlscript',
  283.             "s" => 'text/x-asm',
  284.             "asm" => 'text/x-asm',
  285.             "c" => 'text/x-c',
  286.             "cc" => 'text/x-c',
  287.             "cxx" => 'text/x-c',
  288.             "cpp" => 'text/x-c',
  289.             "h" => 'text/x-c',
__________________
Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios