begin process at 2010 02 10 17:46:06
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Fichier / Disque

 > STREAMING EN PHP

STREAMING EN PHP


 Information sur la source

Note :
6,6 / 10 - par 5 personnes
6,60 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Fichier / Disque Classé sous :streaming, stream, content-type Niveau :Initié Date de création :29/09/2008 Vu / téléchargé :7 560 / 576

Auteur : jbphp

Ecrire un message privé
Commentaire sur cette source (37)
Ajouter un commentaire et/ou une note

 Description

System de streaming en php.
Vous verrez tous est bien commentée.
Liste des argument à envoyer en methode GET:
1- file=url_du_fichier_avec_possibilite_de_lencoder_e n_base64
2- encode_name_file=true_si_file_est_encoder_en_base6 4_else_ds_le_cas_contraire
3- cache=envoyer_a_false_si_vous_ne_voulez_pas_que_le _navigateur_stock_le_contenue_du_fichier_dans_son_ cache_sinon_true
4- filename=un_eventuelle_nom_a_afficher_ds_une_boite _de_telechargement

Source

  • <?php
  • //liste des diferentes extensions avec le type-mime qui leurs corespond
  • $content_type = array(
  • ".3dm" => "x-world/x-3dmf",
  • ".3dmf" => "x-world/x-3dmf",
  • ".a" => "application/octet-stream",
  • ".aab" => "application/x-authorware-bin",
  • ".aam" => "application/x-authorware-map",
  • ".aas" => "application/x-authorware-seg",
  • ".abc" => "text/vnd.abc",
  • ".acgi" => "text/html",
  • ".afl" => "video/animaflex",
  • ".ai" => "application/postscript",
  • ".aif" => "audio/aiff",
  • ".aif" => "audio/x-aiff",
  • ".aifc" => "audio/aiff",
  • ".aifc" => "audio/x-aiff",
  • ".aiff" => "audio/aiff",
  • ".aiff" => "audio/x-aiff",
  • ".aim" => "application/x-aim",
  • ".aip" => "text/x-audiosoft-intra",
  • ".ani" => "application/x-navi-animation",
  • ".aos" => "application/x-nokia-9000-communicator-add-on-software",
  • ".aps" => "application/mime",
  • ".arc" => "application/octet-stream",
  • ".arj" => "application/arj",
  • ".arj" => "application/octet-stream",
  • ".art" => "image/x-jg",
  • ".asf" => "video/x-ms-asf",
  • ".asm" => "text/x-asm",
  • ".asp" => "text/asp",
  • ".asx" => "application/x-mplayer2",
  • ".asx" => "video/x-ms-asf",
  • ".asx" => "video/x-ms-asf-plugin",
  • ".au" => "audio/basic",
  • ".au" => "audio/x-au",
  • ".avi" => "application/x-troff-msvideo",
  • ".avi" => "video/avi",
  • ".avi" => "video/msvideo",
  • ".avi" => "video/x-msvideo",
  • ".avs" => "video/avs-video",
  • ".bcpio" => "application/x-bcpio",
  • ".bin" => "application/mac-binary",
  • ".bin" => "application/macbinary",
  • ".bin" => "application/octet-stream",
  • ".bin" => "application/x-binary",
  • ".bin" => "application/x-macbinary",
  • ".bm" => "image/bmp",
  • ".bmp" => "image/bmp",
  • ".bmp" => "image/x-windows-bmp",
  • ".boo" => "application/book",
  • ".book" => "application/book",
  • ".boz" => "application/x-bzip2",
  • ".bsh" => "application/x-bsh",
  • ".bz" => "application/x-bzip",
  • ".bz2" => "application/x-bzip2",
  • ".c" => "text/plain",
  • ".c" => "text/x-c",
  • ".c++" => "text/plain",
  • ".cat" => "application/vnd.ms-pki.seccat",
  • ".cc" => "text/plain",
  • ".cc" => "text/x-c",
  • ".ccad" => "application/clariscad",
  • ".cco" => "application/x-cocoa",
  • ".cdf" => "application/cdf",
  • ".cdf" => "application/x-cdf",
  • ".cdf" => "application/x-netcdf",
  • ".cer" => "application/pkix-cert",
  • ".cer" => "application/x-x509-ca-cert",
  • ".cha" => "application/x-chat",
  • ".chat" => "application/x-chat",
  • ".class" => "application/java",
  • ".class" => "application/java-byte-code",
  • ".class" => "application/x-java-class",
  • ".com" => "application/octet-stream",
  • ".com" => "text/plain",
  • ".conf" => "text/plain",
  • ".cpio" => "application/x-cpio",
  • ".cpp" => "text/x-c",
  • ".cpt" => "application/mac-compactpro",
  • ".cpt" => "application/x-compactpro",
  • ".cpt" => "application/x-cpt",
  • ".crl" => "application/pkcs-crl",
  • ".crl" => "application/pkix-crl",
  • ".crt" => "application/pkix-cert",
  • ".crt" => "application/x-x509-ca-cert",
  • ".crt" => "application/x-x509-user-cert",
  • ".csh" => "application/x-csh",
  • ".csh" => "text/x-script.csh",
  • ".css" => "application/x-pointplus",
  • ".css" => "text/css",
  • ".cxx" => "text/plain",
  • ".dcr" => "application/x-director",
  • ".deepv" => "application/x-deepv",
  • ".def" => "text/plain",
  • ".der" => "application/x-x509-ca-cert",
  • ".dif" => "video/x-dv",
  • ".dir" => "application/x-director",
  • ".dl" => "video/dl",
  • ".dl" => "video/x-dl",
  • ".doc" => "application/msword",
  • ".dot" => "application/msword",
  • ".dp" => "application/commonground",
  • ".drw" => "application/drafting",
  • ".dump" => "application/octet-stream",
  • ".dv" => "video/x-dv",
  • ".dvi" => "application/x-dvi",
  • ".dwf" => "model/vnd.dwf",
  • ".dwg" => "application/acad",
  • ".dwg" => "image/vnd.dwg",
  • ".dwg" => "image/x-dwg",
  • ".dxf" => "application/dxf",
  • ".dxf" => "image/vnd.dwg",
  • ".dxf" => "image/x-dwg",
  • ".dxr" => "application/x-director",
  • ".el" => "text/x-script.elisp",
  • ".elc" => "application/x-bytecode.elisp",
  • ".elc" => "application/x-elc",
  • ".env" => "application/x-envoy",
  • ".eps" => "application/postscript",
  • ".es" => "application/x-esrehber",
  • ".etx" => "text/x-setext",
  • ".evy" => "application/envoy",
  • ".evy" => "application/x-envoy",
  • ".exe" => "application/octet-stream",
  • ".f" => "text/plain",
  • ".f" => "text/x-fortran",
  • ".f77" => "text/x-fortran",
  • ".f90" => "text/plain",
  • ".f90" => "text/x-fortran",
  • ".fdf" => "application/vnd.fdf",
  • ".fif" => "application/fractals",
  • ".fif" => "image/fif",
  • ".fli" => "video/fli",
  • ".fli" => "video/x-fli",
  • ".flo" => "image/florian",
  • ".flv" => "application/octet-stream",
  • ".flx" => "text/vnd.fmi.flexstor",
  • ".fmf" => "video/x-atomic3d-feature",
  • ".for" => "text/plain",
  • ".for" => "text/x-fortran",
  • ".fpx" => "image/vnd.fpx",
  • ".fpx" => "image/vnd.net-fpx",
  • ".frl" => "application/freeloader",
  • ".funk" => "audio/make",
  • ".g" => "text/plain",
  • ".g3" => "image/g3fax",
  • ".gif" => "image/gif",
  • ".gl" => "video/gl",
  • ".gl" => "video/x-gl",
  • ".gsd" => "audio/x-gsm",
  • ".gsm" => "audio/x-gsm",
  • ".gsp" => "application/x-gsp",
  • ".gss" => "application/x-gss",
  • ".gtar" => "application/x-gtar",
  • ".gz" => "application/x-compressed",
  • ".gz" => "application/x-gzip",
  • ".gzip" => "application/x-gzip",
  • ".gzip" => "multipart/x-gzip",
  • ".h" => "text/plain",
  • ".h" => "text/x-h",
  • ".hdf" => "application/x-hdf",
  • ".help" => "application/x-helpfile",
  • ".hgl" => "application/vnd.hp-hpgl",
  • ".hh" => "text/plain",
  • ".hh" => "text/x-h",
  • ".hlb" => "text/x-script",
  • ".hlp" => "application/hlp",
  • ".hlp" => "application/x-helpfile",
  • ".hlp" => "application/x-winhelp",
  • ".hpg" => "application/vnd.hp-hpgl",
  • ".hpgl" => "application/vnd.hp-hpgl",
  • ".hqx" => "application/binhex",
  • ".hqx" => "application/binhex4",
  • ".hqx" => "application/mac-binhex",
  • ".hqx" => "application/mac-binhex40",
  • ".hqx" => "application/x-binhex40",
  • ".hqx" => "application/x-mac-binhex40",
  • ".hta" => "application/hta",
  • ".htc" => "text/x-component",
  • ".htm" => "text/html",
  • ".html" => "text/html",
  • ".htmls" => "text/html",
  • ".htt" => "text/webviewhtml",
  • ".htx" => "text/html",
  • ".ice" => "x-conference/x-cooltalk",
  • ".ico" => "image/x-icon",
  • ".idc" => "text/plain",
  • ".ief" => "image/ief",
  • ".iefs" => "image/ief",
  • ".iges" => "application/iges",
  • ".iges" => "model/iges",
  • ".igs" => "application/iges",
  • ".igs" => "model/iges",
  • ".ima" => "application/x-ima",
  • ".imap" => "application/x-httpd-imap",
  • ".inf" => "application/inf",
  • ".ins" => "application/x-internett-signup",
  • ".ip" => "application/x-ip2",
  • ".isu" => "video/x-isvideo",
  • ".it" => "audio/it",
  • ".iv" => "application/x-inventor",
  • ".ivr" => "i-world/i-vrml",
  • ".ivy" => "application/x-livescreen",
  • ".jam" => "audio/x-jam",
  • ".jav" => "text/plain",
  • ".jav" => "text/x-java-source",
  • ".java" => "text/plain",
  • ".java" => "text/x-java-source",
  • ".jcm" => "application/x-java-commerce",
  • ".jfif" => "image/jpeg",
  • ".jfif" => "image/pjpeg",
  • ".jfif-tbnl" => "image/jpeg",
  • ".jpe" => "image/jpeg",
  • ".jpe" => "image/pjpeg",
  • ".jpeg" => "image/jpeg",
  • ".jpeg" => "image/pjpeg",
  • ".jpg" => "image/jpeg",
  • ".jpg" => "image/pjpeg",
  • ".jps" => "image/x-jps",
  • ".js" => "application/x-javascript",
  • ".jut" => "image/jutvision",
  • ".kar" => "audio/midi",
  • ".kar" => "music/x-karaoke",
  • ".ksh" => "application/x-ksh",
  • ".ksh" => "text/x-script.ksh",
  • ".la" => "audio/nspaudio",
  • ".la" => "audio/x-nspaudio",
  • ".lam" => "audio/x-liveaudio",
  • ".latex" => "application/x-latex",
  • ".lha" => "application/lha",
  • ".lha" => "application/octet-stream",
  • ".lha" => "application/x-lha",
  • ".lhx" => "application/octet-stream",
  • ".list" => "text/plain",
  • ".lma" => "audio/nspaudio",
  • ".lma" => "audio/x-nspaudio",
  • ".log" => "text/plain",
  • ".lsp" => "application/x-lisp",
  • ".lsp" => "text/x-script.lisp",
  • ".lst" => "text/plain",
  • ".lsx" => "text/x-la-asf",
  • ".ltx" => "application/x-latex",
  • ".lzh" => "application/octet-stream",
  • ".lzh" => "application/x-lzh",
  • ".lzx" => "application/lzx",
  • ".lzx" => "application/octet-stream",
  • ".lzx" => "application/x-lzx",
  • ".m" => "text/plain",
  • ".m" => "text/x-m",
  • ".m1v" => "video/mpeg",
  • ".m2a" => "audio/mpeg",
  • ".m2v" => "video/mpeg",
  • ".m3u" => "audio/x-mpequrl",
  • ".man" => "application/x-troff-man",
  • ".map" => "application/x-navimap",
  • ".mar" => "text/plain",
  • ".mbd" => "application/mbedlet",
  • ".mc$" => "application/x-magic-cap-package-1.0",
  • ".mcd" => "application/mcad",
  • ".mcd" => "application/x-mathcad",
  • ".mcf" => "image/vasa",
  • ".mcf" => "text/mcf",
  • ".mcp" => "application/netmc",
  • ".me" => "application/x-troff-me",
  • ".mht" => "message/rfc822",
  • ".mhtml" => "message/rfc822",
  • ".mid" => "application/x-midi",
  • ".mid" => "audio/midi",
  • ".mid" => "audio/x-mid",
  • ".mid" => "audio/x-midi",
  • ".mid" => "music/crescendo",
  • ".mid" => "x-music/x-midi",
  • ".midi" => "application/x-midi",
  • ".midi" => "audio/midi",
  • ".midi" => "audio/x-mid",
  • ".midi" => "audio/x-midi",
  • ".midi" => "music/crescendo",
  • ".midi" => "x-music/x-midi",
  • ".mif" => "application/x-frame",
  • ".mif" => "application/x-mif",
  • ".mime" => "message/rfc822",
  • ".mime" => "www/mime",
  • ".mjf" => "audio/x-vnd.audioexplosion.mjuicemediafile",
  • ".mjpg" => "video/x-motion-jpeg",
  • ".mm" => "application/base64",
  • ".mm" => "application/x-meme",
  • ".mme" => "application/base64",
  • ".mod" => "audio/mod",
  • ".mod" => "audio/x-mod",
  • ".moov" => "video/quicktime",
  • ".mov" => "video/quicktime",
  • ".movie" => "video/x-sgi-movie",
  • ".mp2" => "audio/mpeg",
  • ".mp2" => "audio/x-mpeg",
  • ".mp2" => "video/mpeg",
  • ".mp2" => "video/x-mpeg",
  • ".mp2" => "video/x-mpeq2a",
  • ".mp3" => "audio/mpeg3",
  • ".mp3" => "audio/x-mpeg-3",
  • ".mp3" => "video/mpeg",
  • ".mp3" => "video/x-mpeg",
  • ".mpa" => "audio/mpeg",
  • ".mpa" => "video/mpeg",
  • ".mpc" => "application/x-project",
  • ".mpe" => "video/mpeg",
  • ".mpeg" => "video/mpeg",
  • ".mpg" => "audio/mpeg",
  • ".mpg" => "video/mpeg",
  • ".mpga" => "audio/mpeg",
  • ".mpp" => "application/vnd.ms-project",
  • ".mpt" => "application/x-project",
  • ".mpv" => "application/x-project",
  • ".mpx" => "application/x-project",
  • ".mrc" => "application/marc",
  • ".ms" => "application/x-troff-ms",
  • ".mv" => "video/x-sgi-movie",
  • ".my" => "audio/make",
  • ".mzz" => "application/x-vnd.audioexplosion.mzz",
  • ".nap" => "image/naplps",
  • ".naplps" => "image/naplps",
  • ".nc" => "application/x-netcdf",
  • ".ncm" => "application/vnd.nokia.configuration-message",
  • ".nif" => "image/x-niff",
  • ".niff" => "image/x-niff",
  • ".nix" => "application/x-mix-transfer",
  • ".nsc" => "application/x-conference",
  • ".nvd" => "application/x-navidoc",
  • ".o" => "application/octet-stream",
  • ".oda" => "application/oda",
  • ".omc" => "application/x-omc",
  • ".omcd" => "application/x-omcdatamaker",
  • ".omcr" => "application/x-omcregerator",
  • ".p" => "text/x-pascal",
  • ".p10" => "application/pkcs10",
  • ".p10" => "application/x-pkcs10",
  • ".p12" => "application/pkcs-12",
  • ".p12" => "application/x-pkcs12",
  • ".p7a" => "application/x-pkcs7-signature",
  • ".p7c" => "application/pkcs7-mime",
  • ".p7c" => "application/x-pkcs7-mime",
  • ".p7m" => "application/pkcs7-mime",
  • ".p7m" => "application/x-pkcs7-mime",
  • ".p7r" => "application/x-pkcs7-certreqresp",
  • ".p7s" => "application/pkcs7-signature",
  • ".part" => "application/pro_eng",
  • ".pas" => "text/pascal",
  • ".pbm" => "image/x-portable-bitmap",
  • ".pcl" => "application/vnd.hp-pcl",
  • ".pcl" => "application/x-pcl",
  • ".pct" => "image/x-pict",
  • ".pcx" => "image/x-pcx",
  • ".pdb" => "chemical/x-pdb",
  • ".pdf" => "application/pdf",
  • ".pfunk" => "audio/make",
  • ".pfunk" => "audio/make.my.funk",
  • ".pgm" => "image/x-portable-graymap",
  • ".pgm" => "image/x-portable-greymap",
  • ".pic" => "image/pict",
  • ".pict" => "image/pict",
  • ".pkg" => "application/x-newton-compatible-pkg",
  • ".pko" => "application/vnd.ms-pki.pko",
  • ".pl" => "text/plain",
  • ".pl" => "text/x-script.perl",
  • ".plx" => "application/x-pixclscript",
  • ".pm" => "image/x-xpixmap",
  • ".pm" => "text/x-script.perl-module",
  • ".pm4" => "application/x-pagemaker",
  • ".pm5" => "application/x-pagemaker",
  • ".png" => "image/png",
  • ".pnm" => "application/x-portable-anymap",
  • ".pnm" => "image/x-portable-anymap",
  • ".pot" => "application/mspowerpoint",
  • ".pot" => "application/vnd.ms-powerpoint",
  • ".pov" => "model/x-pov",
  • ".ppa" => "application/vnd.ms-powerpoint",
  • ".ppm" => "image/x-portable-pixmap",
  • ".pps" => "application/mspowerpoint",
  • ".pps" => "application/vnd.ms-powerpoint",
  • ".ppt" => "application/mspowerpoint",
  • ".ppt" => "application/powerpoint",
  • ".ppt" => "application/vnd.ms-powerpoint",
  • ".ppt" => "application/x-mspowerpoint",
  • ".ppz" => "application/mspowerpoint",
  • ".pre" => "application/x-freelance",
  • ".prt" => "application/pro_eng",
  • ".ps" => "application/postscript",
  • ".psd" => "application/octet-stream",
  • ".pvu" => "paleovu/x-pv",
  • ".pwz" => "application/vnd.ms-powerpoint",
  • ".py" => "text/x-script.phyton",
  • ".pyc" => "applicaiton/x-bytecode.python",
  • ".qcp" => "audio/vnd.qcelp",
  • ".qd3" => "x-world/x-3dmf",
  • ".qd3d" => "x-world/x-3dmf",
  • ".qif" => "image/x-quicktime",
  • ".qt" => "video/quicktime",
  • ".qtc" => "video/x-qtc",
  • ".qti" => "image/x-quicktime",
  • ".qtif" => "image/x-quicktime",
  • ".ra" => "audio/x-pn-realaudio",
  • ".ra" => "audio/x-pn-realaudio-plugin",
  • ".ra" => "audio/x-realaudio",
  • ".ram" => "audio/x-pn-realaudio",
  • ".ras" => "application/x-cmu-raster",
  • ".ras" => "image/cmu-raster",
  • ".ras" => "image/x-cmu-raster",
  • ".rast" => "image/cmu-raster",
  • ".rexx" => "text/x-script.rexx",
  • ".rf" => "image/vnd.rn-realflash",
  • ".rgb" => "image/x-rgb",
  • ".rm" => "application/vnd.rn-realmedia",
  • ".rm" => "audio/x-pn-realaudio",
  • ".rmi" => "audio/mid",
  • ".rmm" => "audio/x-pn-realaudio",
  • ".rmp" => "audio/x-pn-realaudio",
  • ".rmp" => "audio/x-pn-realaudio-plugin",
  • ".rng" => "application/ringing-tones",
  • ".rng" => "application/vnd.nokia.ringing-tone",
  • ".rnx" => "application/vnd.rn-realplayer",
  • ".roff" => "application/x-roff",
  • ".rp" => "image/vnd.rn-realpix",
  • ".rpm" => "audio/x-pn-realaudio-plugin",
  • ".rt" => "text/richtext",
  • ".rt" => "text/vnd.rn-realtext",
  • ".rtf" => "application/rtf",
  • ".rtf" => "application/x-rtf",
  • ".rtf" => "text/richtext",
  • ".rtx" => "application/rtf",
  • ".rtx" => "text/richtext",
  • ".rv" => "video/vnd.rn-realvideo",
  • ".s" => "text/x-asm",
  • ".s3m" => "audio/s3m",
  • ".saveme" => "application/octet-stream",
  • ".sbk" => "application/x-tbook",
  • ".scm" => "application/x-lotusscreencam",
  • ".scm" => "text/x-script.guile",
  • ".scm" => "text/x-script.scheme",
  • ".scm" => "video/x-scm",
  • ".sdml" => "text/plain",
  • ".sdp" => "application/sdp",
  • ".sdp" => "application/x-sdp",
  • ".sdr" => "application/sounder",
  • ".sea" => "application/sea",
  • ".sea" => "application/x-sea",
  • ".set" => "application/set",
  • ".sgm" => "text/sgml",
  • ".sgm" => "text/x-sgml",
  • ".sgml" => "text/sgml",
  • ".sgml" => "text/x-sgml",
  • ".sh" => "application/x-bsh",
  • ".sh" => "application/x-sh",
  • ".sh" => "application/x-shar",
  • ".sh" => "text/x-script.sh",
  • ".shar" => "application/x-bsh",
  • ".shar" => "application/x-shar",
  • ".shtml" => "text/html",
  • ".shtml" => "text/x-server-parsed-html",
  • ".sid" => "audio/x-psid",
  • ".sit" => "application/x-sit",
  • ".sit" => "application/x-stuffit",
  • ".skd" => "application/x-koan",
  • ".skm" => "application/x-koan",
  • ".skp" => "application/x-koan",
  • ".skt" => "application/x-koan",
  • ".sl" => "application/x-seelogo",
  • ".smi" => "application/smil",
  • ".smil" => "application/smil",
  • ".snd" => "audio/basic",
  • ".snd" => "audio/x-adpcm",
  • ".sol" => "application/solids",
  • ".spc" => "application/x-pkcs7-certificates",
  • ".spc" => "text/x-speech",
  • ".spl" => "application/futuresplash",
  • ".spr" => "application/x-sprite",
  • ".sprite" => "application/x-sprite",
  • ".src" => "application/x-wais-source",
  • ".ssi" => "text/x-server-parsed-html",
  • ".ssm" => "application/streamingmedia",
  • ".sst" => "application/vnd.ms-pki.certstore",
  • ".step" => "application/step",
  • ".stl" => "application/sla",
  • ".stl" => "application/vnd.ms-pki.stl",
  • ".stl" => "application/x-navistyle",
  • ".stp" => "application/step",
  • ".sv4cpio" => "application/x-sv4cpio",
  • ".sv4crc" => "application/x-sv4crc",
  • ".svf" => "image/vnd.dwg",
  • ".svf" => "image/x-dwg",
  • ".svr" => "application/x-world",
  • ".svr" => "x-world/x-svr",
  • ".swf" => "application/x-shockwave-flash",
  • ".t" => "application/x-troff",
  • ".talk" => "text/x-speech",
  • ".tar" => "application/x-tar",
  • ".tbk" => "application/toolbook",
  • ".tbk" => "application/x-tbook",
  • ".tcl" => "application/x-tcl",
  • ".tcl" => "text/x-script.tcl",
  • ".tcsh" => "text/x-script.tcsh",
  • ".tex" => "application/x-tex",
  • ".texi" => "application/x-texinfo",
  • ".texinfo" => "application/x-texinfo",
  • ".text" => "application/plain",
  • ".text" => "text/plain",
  • ".tgz" => "application/gnutar",
  • ".tgz" => "application/x-compressed",
  • ".tif" => "image/tiff",
  • ".tif" => "image/x-tiff",
  • ".tiff" => "image/tiff",
  • ".tiff" => "image/x-tiff",
  • ".tr" => "application/x-troff",
  • ".tsi" => "audio/tsp-audio",
  • ".tsp" => "application/dsptype",
  • ".tsp" => "audio/tsplayer",
  • ".tsv" => "text/tab-separated-values",
  • ".turbot" => "image/florian",
  • ".txt" => "text/plain",
  • ".uil" => "text/x-uil",
  • ".uni" => "text/uri-list",
  • ".unis" => "text/uri-list",
  • ".unv" => "application/i-deas",
  • ".uri" => "text/uri-list",
  • ".uris" => "text/uri-list",
  • ".ustar" => "application/x-ustar",
  • ".ustar" => "multipart/x-ustar",
  • ".uu" => "application/octet-stream",
  • ".uu" => "text/x-uuencode",
  • ".uue" => "text/x-uuencode",
  • ".vcd" => "application/x-cdlink",
  • ".vcs" => "text/x-vcalendar",
  • ".vda" => "application/vda",
  • ".vdo" => "video/vdo",
  • ".vew" => "application/groupwise",
  • ".viv" => "video/vivo",
  • ".viv" => "video/vnd.vivo",
  • ".vivo" => "video/vivo",
  • ".vivo" => "video/vnd.vivo",
  • ".vmd" => "application/vocaltec-media-desc",
  • ".vmf" => "application/vocaltec-media-file",
  • ".voc" => "audio/voc",
  • ".voc" => "audio/x-voc",
  • ".vos" => "video/vosaic",
  • ".vox" => "audio/voxware",
  • ".vqe" => "audio/x-twinvq-plugin",
  • ".vqf" => "audio/x-twinvq",
  • ".vql" => "audio/x-twinvq-plugin",
  • ".vrml" => "application/x-vrml",
  • ".vrml" => "model/vrml",
  • ".vrml" => "x-world/x-vrml",
  • ".vrt" => "x-world/x-vrt",
  • ".vsd" => "application/x-visio",
  • ".vst" => "application/x-visio",
  • ".vsw" => "application/x-visio",
  • ".w60" => "application/wordperfect6.0",
  • ".w61" => "application/wordperfect6.1",
  • ".w6w" => "application/msword",
  • ".wav" => "audio/wav",
  • ".wav" => "audio/x-wav",
  • ".wb1" => "application/x-qpro",
  • ".wbmp" => "image/vnd.wap.wbmp",
  • ".web" => "application/vnd.xara",
  • ".wiz" => "application/msword",
  • ".wk1" => "application/x-123",
  • ".wmf" => "windows/metafile",
  • ".wml" => "text/vnd.wap.wml",
  • ".wmlc" => "application/vnd.wap.wmlc",
  • ".wmls" => "text/vnd.wap.wmlscript",
  • ".wmlsc" => "application/vnd.wap.wmlscriptc",
  • ".word" => "application/msword",
  • ".wp" => "application/wordperfect",
  • ".wp5" => "application/wordperfect",
  • ".wp5" => "application/wordperfect6.0",
  • ".wp6" => "application/wordperfect",
  • ".wpd" => "application/wordperfect",
  • ".wpd" => "application/x-wpwin",
  • ".wq1" => "application/x-lotus",
  • ".wri" => "application/mswrite",
  • ".wri" => "application/x-wri",
  • ".wrl" => "application/x-world",
  • ".wrl" => "model/vrml",
  • ".wrl" => "x-world/x-vrml",
  • ".wrz" => "model/vrml",
  • ".wrz" => "x-world/x-vrml",
  • ".wsc" => "text/scriplet",
  • ".wsrc" => "application/x-wais-source",
  • ".wtk" => "application/x-wintalk",
  • ".xbm" => "image/x-xbitmap",
  • ".xbm" => "image/x-xbm",
  • ".xbm" => "image/xbm",
  • ".xdr" => "video/x-amt-demorun",
  • ".xgz" => "xgl/drawing",
  • ".xif" => "image/vnd.xiff",
  • ".xl" => "application/excel",
  • ".xla" => "application/excel",
  • ".xla" => "application/x-excel",
  • ".xla" => "application/x-msexcel",
  • ".xlb" => "application/excel",
  • ".xlb" => "application/vnd.ms-excel",
  • ".xlb" => "application/x-excel",
  • ".xlc" => "application/excel",
  • ".xlc" => "application/vnd.ms-excel",
  • ".xlc" => "application/x-excel",
  • ".xld" => "application/excel",
  • ".xld" => "application/x-excel",
  • ".xlk" => "application/excel",
  • ".xlk" => "application/x-excel",
  • ".xll" => "application/excel",
  • ".xll" => "application/vnd.ms-excel",
  • ".xll" => "application/x-excel",
  • ".xlm" => "application/excel",
  • ".xlm" => "application/vnd.ms-excel",
  • ".xlm" => "application/x-excel",
  • ".xls" => "application/excel",
  • ".xls" => "application/vnd.ms-excel",
  • ".xls" => "application/x-excel",
  • ".xls" => "application/x-msexcel",
  • ".xlt" => "application/excel",
  • ".xlt" => "application/x-excel",
  • ".xlv" => "application/excel",
  • ".xlv" => "application/x-excel",
  • ".xlw" => "application/excel",
  • ".xlw" => "application/vnd.ms-excel",
  • ".xlw" => "application/x-excel",
  • ".xlw" => "application/x-msexcel",
  • ".xm" => "audio/xm",
  • ".xml" => "application/xml",
  • ".xml" => "text/xml",
  • ".xmz" => "xgl/movie",
  • ".xpix" => "application/x-vnd.ls-xpix",
  • ".xpm" => "image/x-xpixmap",
  • ".xpm" => "image/xpm",
  • ".x-png" => "image/png",
  • ".xsr" => "video/x-amt-showrun",
  • ".xwd" => "image/x-xwd",
  • ".xwd" => "image/x-xwindowdump",
  • ".xyz" => "chemical/x-pdb",
  • ".z" => "application/x-compress",
  • ".z" => "application/x-compressed",
  • ".zip" => "application/x-compressed",
  • ".zip" => "application/x-zip-compressed",
  • ".zip" => "application/zip",
  • ".zip" => "multipart/x-zip",
  • ".zoo" => "application/octet-stream",
  • ".zsh" => "text/x-script.zshf"
  • );
  • //recuperation de l'extension d'un fichier ".extension"
  • function getMimeType($file){
  • return $content_type[".".pathinfo($file,PATHINFO_EXTENSION)];
  • }
  • $file = $_GET["file"];
  • //verification d'un eventuel encodage en base64 du nom du fichier
  • if(isset($_GET["encode_name_file"])):
  • if($_GET["encode_name_file"] === "true")$encodenamefile = true;
  • if($_GET["encode_name_file"] === "false")$encodenamefile = false;
  • else:
  • $encodenamefile = false;
  • endif;
  • //verification de la demmande ou non demmande de protection contre la mise en cache
  • if(isset($_GET["cache"])):
  • if($_GET["cache"] === "true")$cache = true;
  • if($_GET["cache"] === "false")$cache = false;
  • else:
  • $cache = true;
  • endif;
  • //verification de l'envoie ou non d'un nom de ficher a inserer dans une eventuelle boite de telechargement
  • if(isset($_GET["filename"])):
  • if($_GET["filename"] !=== "null")$filename = array(true,$_GET["namefile"]);
  • if($_GET["filename"] === "null")$filename = array(false);
  • else:
  • $filename = array(false);
  • endif;
  • //decodage eventuel de nom du fichier a ouvrir
  • if($encodenamefile):
  • $file = base64_decode($file);
  • else:
  • $file = $file;
  • endif;
  • //ouverture du fichier en streaming
  • $stream = fopen($file,"rb");
  • $ext = $content_type[getMimeType($file)];
  • $size = filesize($file);
  • //envoie des entete du fichier
  • header("Content-Type: ".$ext); //envoie du type de fichier
  • header("Content-Length: ".$size); //envoie de la taille du fichier
  • if($cache): //interdiction eventuel de mise en cache du fichier
  • else:
  • header("Cache-Control: no-cache, must-revalidate");
  • header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
  • endif;
  • if($filename[0]): //envoie eventuel d'un nom de fichier a inserer dans une eventuel boite de telechargement
  • header("Content-Disposition: attachment; filename='".$filename[1]."'");
  • endif;
  • header("Content-Transfer-Encoding: binary");
  • //envoie du contenue du fichier
  • fpassthru($stream);
  • //fermeture du streaming
  • fclose($stream);
  • ?>
<?php
//liste des diferentes extensions avec le type-mime qui leurs corespond
$content_type = array(
".3dm" => "x-world/x-3dmf",
".3dmf" => "x-world/x-3dmf",
".a" => "application/octet-stream",
".aab" => "application/x-authorware-bin",
".aam" => "application/x-authorware-map",
".aas" => "application/x-authorware-seg",
".abc" => "text/vnd.abc",
".acgi" => "text/html",
".afl" => "video/animaflex",
".ai" => "application/postscript",
".aif" => "audio/aiff",
".aif" => "audio/x-aiff",
".aifc" => "audio/aiff",
".aifc" => "audio/x-aiff",
".aiff" => "audio/aiff",
".aiff" => "audio/x-aiff",
".aim" => "application/x-aim",
".aip" => "text/x-audiosoft-intra",
".ani" => "application/x-navi-animation",
".aos" => "application/x-nokia-9000-communicator-add-on-software",
".aps" => "application/mime",
".arc" => "application/octet-stream",
".arj" => "application/arj",
".arj" => "application/octet-stream",
".art" => "image/x-jg",
".asf" => "video/x-ms-asf",
".asm" => "text/x-asm",
".asp" => "text/asp",
".asx" => "application/x-mplayer2",
".asx" => "video/x-ms-asf",
".asx" => "video/x-ms-asf-plugin",
".au" => "audio/basic",
".au" => "audio/x-au",
".avi" => "application/x-troff-msvideo",
".avi" => "video/avi",
".avi" => "video/msvideo",
".avi" => "video/x-msvideo",
".avs" => "video/avs-video",
".bcpio" => "application/x-bcpio",
".bin" => "application/mac-binary",
".bin" => "application/macbinary",
".bin" => "application/octet-stream",
".bin" => "application/x-binary",
".bin" => "application/x-macbinary",
".bm" => "image/bmp",
".bmp" => "image/bmp",
".bmp" => "image/x-windows-bmp",
".boo" => "application/book",
".book" => "application/book",
".boz" => "application/x-bzip2",
".bsh" => "application/x-bsh",
".bz" => "application/x-bzip",
".bz2" => "application/x-bzip2",
".c" => "text/plain",
".c" => "text/x-c",
".c++" => "text/plain",
".cat" => "application/vnd.ms-pki.seccat",
".cc" => "text/plain",
".cc" => "text/x-c",
".ccad" => "application/clariscad",
".cco" => "application/x-cocoa",
".cdf" => "application/cdf",
".cdf" => "application/x-cdf",
".cdf" => "application/x-netcdf",
".cer" => "application/pkix-cert",
".cer" => "application/x-x509-ca-cert",
".cha" => "application/x-chat",
".chat" => "application/x-chat",
".class" => "application/java",
".class" => "application/java-byte-code",
".class" => "application/x-java-class",
".com" => "application/octet-stream",
".com" => "text/plain",
".conf" => "text/plain",
".cpio" => "application/x-cpio",
".cpp" => "text/x-c",
".cpt" => "application/mac-compactpro",
".cpt" => "application/x-compactpro",
".cpt" => "application/x-cpt",
".crl" => "application/pkcs-crl",
".crl" => "application/pkix-crl",
".crt" => "application/pkix-cert",
".crt" => "application/x-x509-ca-cert",
".crt" => "application/x-x509-user-cert",
".csh" => "application/x-csh",
".csh" => "text/x-script.csh",
".css" => "application/x-pointplus",
".css" => "text/css",
".cxx" => "text/plain",
".dcr" => "application/x-director",
".deepv" => "application/x-deepv",
".def" => "text/plain",
".der" => "application/x-x509-ca-cert",
".dif" => "video/x-dv",
".dir" => "application/x-director",
".dl" => "video/dl",
".dl" => "video/x-dl",
".doc" => "application/msword",
".dot" => "application/msword",
".dp" => "application/commonground",
".drw" => "application/drafting",
".dump" => "application/octet-stream",
".dv" => "video/x-dv",
".dvi" => "application/x-dvi",
".dwf" => "model/vnd.dwf",
".dwg" => "application/acad",
".dwg" => "image/vnd.dwg",
".dwg" => "image/x-dwg",
".dxf" => "application/dxf",
".dxf" => "image/vnd.dwg",
".dxf" => "image/x-dwg",
".dxr" => "application/x-director",
".el" => "text/x-script.elisp",
".elc" => "application/x-bytecode.elisp",
".elc" => "application/x-elc",
".env" => "application/x-envoy",
".eps" => "application/postscript",
".es" => "application/x-esrehber",
".etx" => "text/x-setext",
".evy" => "application/envoy",
".evy" => "application/x-envoy",
".exe" => "application/octet-stream",
".f" => "text/plain",
".f" => "text/x-fortran",
".f77" => "text/x-fortran",
".f90" => "text/plain",
".f90" => "text/x-fortran",
".fdf" => "application/vnd.fdf",
".fif" => "application/fractals",
".fif" => "image/fif",
".fli" => "video/fli",
".fli" => "video/x-fli",
".flo" => "image/florian",
".flv" => "application/octet-stream",
".flx" => "text/vnd.fmi.flexstor",
".fmf" => "video/x-atomic3d-feature",
".for" => "text/plain",
".for" => "text/x-fortran",
".fpx" => "image/vnd.fpx",
".fpx" => "image/vnd.net-fpx",
".frl" => "application/freeloader",
".funk" => "audio/make",
".g" => "text/plain",
".g3" => "image/g3fax",
".gif" => "image/gif",
".gl" => "video/gl",
".gl" => "video/x-gl",
".gsd" => "audio/x-gsm",
".gsm" => "audio/x-gsm",
".gsp" => "application/x-gsp",
".gss" => "application/x-gss",
".gtar" => "application/x-gtar",
".gz" => "application/x-compressed",
".gz" => "application/x-gzip",
".gzip" => "application/x-gzip",
".gzip" => "multipart/x-gzip",
".h" => "text/plain",
".h" => "text/x-h",
".hdf" => "application/x-hdf",
".help" => "application/x-helpfile",
".hgl" => "application/vnd.hp-hpgl",
".hh" => "text/plain",
".hh" => "text/x-h",
".hlb" => "text/x-script",
".hlp" => "application/hlp",
".hlp" => "application/x-helpfile",
".hlp" => "application/x-winhelp",
".hpg" => "application/vnd.hp-hpgl",
".hpgl" => "application/vnd.hp-hpgl",
".hqx" => "application/binhex",
".hqx" => "application/binhex4",
".hqx" => "application/mac-binhex",
".hqx" => "application/mac-binhex40",
".hqx" => "application/x-binhex40",
".hqx" => "application/x-mac-binhex40",
".hta" => "application/hta",
".htc" => "text/x-component",
".htm" => "text/html",
".html" => "text/html",
".htmls" => "text/html",
".htt" => "text/webviewhtml",
".htx" => "text/html",
".ice" => "x-conference/x-cooltalk",
".ico" => "image/x-icon",
".idc" => "text/plain",
".ief" => "image/ief",
".iefs" => "image/ief",
".iges" => "application/iges",
".iges" => "model/iges",
".igs" => "application/iges",
".igs" => "model/iges",
".ima" => "application/x-ima",
".imap" => "application/x-httpd-imap",
".inf" => "application/inf",
".ins" => "application/x-internett-signup",
".ip" => "application/x-ip2",
".isu" => "video/x-isvideo",
".it" => "audio/it",
".iv" => "application/x-inventor",
".ivr" => "i-world/i-vrml",
".ivy" => "application/x-livescreen",
".jam" => "audio/x-jam",
".jav" => "text/plain",
".jav" => "text/x-java-source",
".java" => "text/plain",
".java" => "text/x-java-source",
".jcm" => "application/x-java-commerce",
".jfif" => "image/jpeg",
".jfif" => "image/pjpeg",
".jfif-tbnl" => "image/jpeg",
".jpe" => "image/jpeg",
".jpe" => "image/pjpeg",
".jpeg" => "image/jpeg",
".jpeg" => "image/pjpeg",
".jpg" => "image/jpeg",
".jpg" => "image/pjpeg",
".jps" => "image/x-jps",
".js" => "application/x-javascript",
".jut" => "image/jutvision",
".kar" => "audio/midi",
".kar" => "music/x-karaoke",
".ksh" => "application/x-ksh",
".ksh" => "text/x-script.ksh",
".la" => "audio/nspaudio",
".la" => "audio/x-nspaudio",
".lam" => "audio/x-liveaudio",
".latex" => "application/x-latex",
".lha" => "application/lha",
".lha" => "application/octet-stream",
".lha" => "application/x-lha",
".lhx" => "application/octet-stream",
".list" => "text/plain",
".lma" => "audio/nspaudio",
".lma" => "audio/x-nspaudio",
".log" => "text/plain",
".lsp" => "application/x-lisp",
".lsp" => "text/x-script.lisp",
".lst" => "text/plain",
".lsx" => "text/x-la-asf",
".ltx" => "application/x-latex",
".lzh" => "application/octet-stream",
".lzh" => "application/x-lzh",
".lzx" => "application/lzx",
".lzx" => "application/octet-stream",
".lzx" => "application/x-lzx",
".m" => "text/plain",
".m" => "text/x-m",
".m1v" => "video/mpeg",
".m2a" => "audio/mpeg",
".m2v" => "video/mpeg",
".m3u" => "audio/x-mpequrl",
".man" => "application/x-troff-man",
".map" => "application/x-navimap",
".mar" => "text/plain",
".mbd" => "application/mbedlet",
".mc$" => "application/x-magic-cap-package-1.0",
".mcd" => "application/mcad",
".mcd" => "application/x-mathcad",
".mcf" => "image/vasa",
".mcf" => "text/mcf",
".mcp" => "application/netmc",
".me" => "application/x-troff-me",
".mht" => "message/rfc822",
".mhtml" => "message/rfc822",
".mid" => "application/x-midi",
".mid" => "audio/midi",
".mid" => "audio/x-mid",
".mid" => "audio/x-midi",
".mid" => "music/crescendo",
".mid" => "x-music/x-midi",
".midi" => "application/x-midi",
".midi" => "audio/midi",
".midi" => "audio/x-mid",
".midi" => "audio/x-midi",
".midi" => "music/crescendo",
".midi" => "x-music/x-midi",
".mif" => "application/x-frame",
".mif" => "application/x-mif",
".mime" => "message/rfc822",
".mime" => "www/mime",
".mjf" => "audio/x-vnd.audioexplosion.mjuicemediafile",
".mjpg" => "video/x-motion-jpeg",
".mm" => "application/base64",
".mm" => "application/x-meme",
".mme" => "application/base64",
".mod" => "audio/mod",
".mod" => "audio/x-mod",
".moov" => "video/quicktime",
".mov" => "video/quicktime",
".movie" => "video/x-sgi-movie",
".mp2" => "audio/mpeg",
".mp2" => "audio/x-mpeg",
".mp2" => "video/mpeg",
".mp2" => "video/x-mpeg",
".mp2" => "video/x-mpeq2a",
".mp3" => "audio/mpeg3",
".mp3" => "audio/x-mpeg-3",
".mp3" => "video/mpeg",
".mp3" => "video/x-mpeg",
".mpa" => "audio/mpeg",
".mpa" => "video/mpeg",
".mpc" => "application/x-project",
".mpe" => "video/mpeg",
".mpeg" => "video/mpeg",
".mpg" => "audio/mpeg",
".mpg" => "video/mpeg",
".mpga" => "audio/mpeg",
".mpp" => "application/vnd.ms-project",
".mpt" => "application/x-project",
".mpv" => "application/x-project",
".mpx" => "application/x-project",
".mrc" => "application/marc",
".ms" => "application/x-troff-ms",
".mv" => "video/x-sgi-movie",
".my" => "audio/make",
".mzz" => "application/x-vnd.audioexplosion.mzz",
".nap" => "image/naplps",
".naplps" => "image/naplps",
".nc" => "application/x-netcdf",
".ncm" => "application/vnd.nokia.configuration-message",
".nif" => "image/x-niff",
".niff" => "image/x-niff",
".nix" => "application/x-mix-transfer",
".nsc" => "application/x-conference",
".nvd" => "application/x-navidoc",
".o" => "application/octet-stream",
".oda" => "application/oda",
".omc" => "application/x-omc",
".omcd" => "application/x-omcdatamaker",
".omcr" => "application/x-omcregerator",
".p" => "text/x-pascal",
".p10" => "application/pkcs10",
".p10" => "application/x-pkcs10",
".p12" => "application/pkcs-12",
".p12" => "application/x-pkcs12",
".p7a" => "application/x-pkcs7-signature",
".p7c" => "application/pkcs7-mime",
".p7c" => "application/x-pkcs7-mime",
".p7m" => "application/pkcs7-mime",
".p7m" => "application/x-pkcs7-mime",
".p7r" => "application/x-pkcs7-certreqresp",
".p7s" => "application/pkcs7-signature",
".part" => "application/pro_eng",
".pas" => "text/pascal",
".pbm" => "image/x-portable-bitmap",
".pcl" => "application/vnd.hp-pcl",
".pcl" => "application/x-pcl",
".pct" => "image/x-pict",
".pcx" => "image/x-pcx",
".pdb" => "chemical/x-pdb",
".pdf" => "application/pdf",
".pfunk" => "audio/make",
".pfunk" => "audio/make.my.funk",
".pgm" => "image/x-portable-graymap",
".pgm" => "image/x-portable-greymap",
".pic" => "image/pict",
".pict" => "image/pict",
".pkg" => "application/x-newton-compatible-pkg",
".pko" => "application/vnd.ms-pki.pko",
".pl" => "text/plain",
".pl" => "text/x-script.perl",
".plx" => "application/x-pixclscript",
".pm" => "image/x-xpixmap",
".pm" => "text/x-script.perl-module",
".pm4" => "application/x-pagemaker",
".pm5" => "application/x-pagemaker",
".png" => "image/png",
".pnm" => "application/x-portable-anymap",
".pnm" => "image/x-portable-anymap",
".pot" => "application/mspowerpoint",
".pot" => "application/vnd.ms-powerpoint",
".pov" => "model/x-pov",
".ppa" => "application/vnd.ms-powerpoint",
".ppm" => "image/x-portable-pixmap",
".pps" => "application/mspowerpoint",
".pps" => "application/vnd.ms-powerpoint",
".ppt" => "application/mspowerpoint",
".ppt" => "application/powerpoint",
".ppt" => "application/vnd.ms-powerpoint",
".ppt" => "application/x-mspowerpoint",
".ppz" => "application/mspowerpoint",
".pre" => "application/x-freelance",
".prt" => "application/pro_eng",
".ps" => "application/postscript",
".psd" => "application/octet-stream",
".pvu" => "paleovu/x-pv",
".pwz" => "application/vnd.ms-powerpoint",
".py" => "text/x-script.phyton",
".pyc" => "applicaiton/x-bytecode.python",
".qcp" => "audio/vnd.qcelp",
".qd3" => "x-world/x-3dmf",
".qd3d" => "x-world/x-3dmf",
".qif" => "image/x-quicktime",
".qt" => "video/quicktime",
".qtc" => "video/x-qtc",
".qti" => "image/x-quicktime",
".qtif" => "image/x-quicktime",
".ra" => "audio/x-pn-realaudio",
".ra" => "audio/x-pn-realaudio-plugin",
".ra" => "audio/x-realaudio",
".ram" => "audio/x-pn-realaudio",
".ras" => "application/x-cmu-raster",
".ras" => "image/cmu-raster",
".ras" => "image/x-cmu-raster",
".rast" => "image/cmu-raster",
".rexx" => "text/x-script.rexx",
".rf" => "image/vnd.rn-realflash",
".rgb" => "image/x-rgb",
".rm" => "application/vnd.rn-realmedia",
".rm" => "audio/x-pn-realaudio",
".rmi" => "audio/mid",
".rmm" => "audio/x-pn-realaudio",
".rmp" => "audio/x-pn-realaudio",
".rmp" => "audio/x-pn-realaudio-plugin",
".rng" => "application/ringing-tones",
".rng" => "application/vnd.nokia.ringing-tone",
".rnx" => "application/vnd.rn-realplayer",
".roff" => "application/x-roff",
".rp" => "image/vnd.rn-realpix",
".rpm" => "audio/x-pn-realaudio-plugin",
".rt" => "text/richtext",
".rt" => "text/vnd.rn-realtext",
".rtf" => "application/rtf",
".rtf" => "application/x-rtf",
".rtf" => "text/richtext",
".rtx" => "application/rtf",
".rtx" => "text/richtext",
".rv" => "video/vnd.rn-realvideo",
".s" => "text/x-asm",
".s3m" => "audio/s3m",
".saveme" => "application/octet-stream",
".sbk" => "application/x-tbook",
".scm" => "application/x-lotusscreencam",
".scm" => "text/x-script.guile",
".scm" => "text/x-script.scheme",
".scm" => "video/x-scm",
".sdml" => "text/plain",
".sdp" => "application/sdp",
".sdp" => "application/x-sdp",
".sdr" => "application/sounder",
".sea" => "application/sea",
".sea" => "application/x-sea",
".set" => "application/set",
".sgm" => "text/sgml",
".sgm" => "text/x-sgml",
".sgml" => "text/sgml",
".sgml" => "text/x-sgml",
".sh" => "application/x-bsh",
".sh" => "application/x-sh",
".sh" => "application/x-shar",
".sh" => "text/x-script.sh",
".shar" => "application/x-bsh",
".shar" => "application/x-shar",
".shtml" => "text/html",
".shtml" => "text/x-server-parsed-html",
".sid" => "audio/x-psid",
".sit" => "application/x-sit",
".sit" => "application/x-stuffit",
".skd" => "application/x-koan",
".skm" => "application/x-koan",
".skp" => "application/x-koan",
".skt" => "application/x-koan",
".sl" => "application/x-seelogo",
".smi" => "application/smil",
".smil" => "application/smil",
".snd" => "audio/basic",
".snd" => "audio/x-adpcm",
".sol" => "application/solids",
".spc" => "application/x-pkcs7-certificates",
".spc" => "text/x-speech",
".spl" => "application/futuresplash",
".spr" => "application/x-sprite",
".sprite" => "application/x-sprite",
".src" => "application/x-wais-source",
".ssi" => "text/x-server-parsed-html",
".ssm" => "application/streamingmedia",
".sst" => "application/vnd.ms-pki.certstore",
".step" => "application/step",
".stl" => "application/sla",
".stl" => "application/vnd.ms-pki.stl",
".stl" => "application/x-navistyle",
".stp" => "application/step",
".sv4cpio" => "application/x-sv4cpio",
".sv4crc" => "application/x-sv4crc",
".svf" => "image/vnd.dwg",
".svf" => "image/x-dwg",
".svr" => "application/x-world",
".svr" => "x-world/x-svr",
".swf" => "application/x-shockwave-flash",
".t" => "application/x-troff",
".talk" => "text/x-speech",
".tar" => "application/x-tar",
".tbk" => "application/toolbook",
".tbk" => "application/x-tbook",
".tcl" => "application/x-tcl",
".tcl" => "text/x-script.tcl",
".tcsh" => "text/x-script.tcsh",
".tex" => "application/x-tex",
".texi" => "application/x-texinfo",
".texinfo" => "application/x-texinfo",
".text" => "application/plain",
".text" => "text/plain",
".tgz" => "application/gnutar",
".tgz" => "application/x-compressed",
".tif" => "image/tiff",
".tif" => "image/x-tiff",
".tiff" => "image/tiff",
".tiff" => "image/x-tiff",
".tr" => "application/x-troff",
".tsi" => "audio/tsp-audio",
".tsp" => "application/dsptype",
".tsp" => "audio/tsplayer",
".tsv" => "text/tab-separated-values",
".turbot" => "image/florian",
".txt" => "text/plain",
".uil" => "text/x-uil",
".uni" => "text/uri-list",
".unis" => "text/uri-list",
".unv" => "application/i-deas",
".uri" => "text/uri-list",
".uris" => "text/uri-list",
".ustar" => "application/x-ustar",
".ustar" => "multipart/x-ustar",
".uu" => "application/octet-stream",
".uu" => "text/x-uuencode",
".uue" => "text/x-uuencode",
".vcd" => "application/x-cdlink",
".vcs" => "text/x-vcalendar",
".vda" => "application/vda",
".vdo" => "video/vdo",
".vew" => "application/groupwise",
".viv" => "video/vivo",
".viv" => "video/vnd.vivo",
".vivo" => "video/vivo",
".vivo" => "video/vnd.vivo",
".vmd" => "application/vocaltec-media-desc",
".vmf" => "application/vocaltec-media-file",
".voc" => "audio/voc",
".voc" => "audio/x-voc",
".vos" => "video/vosaic",
".vox" => "audio/voxware",
".vqe" => "audio/x-twinvq-plugin",
".vqf" => "audio/x-twinvq",
".vql" => "audio/x-twinvq-plugin",
".vrml" => "application/x-vrml",
".vrml" => "model/vrml",
".vrml" => "x-world/x-vrml",
".vrt" => "x-world/x-vrt",
".vsd" => "application/x-visio",
".vst" => "application/x-visio",
".vsw" => "application/x-visio",
".w60" => "application/wordperfect6.0",
".w61" => "application/wordperfect6.1",
".w6w" => "application/msword",
".wav" => "audio/wav",
".wav" => "audio/x-wav",
".wb1" => "application/x-qpro",
".wbmp" => "image/vnd.wap.wbmp",
".web" => "application/vnd.xara",
".wiz" => "application/msword",
".wk1" => "application/x-123",
".wmf" => "windows/metafile",
".wml" => "text/vnd.wap.wml",
".wmlc" => "application/vnd.wap.wmlc",
".wmls" => "text/vnd.wap.wmlscript",
".wmlsc" => "application/vnd.wap.wmlscriptc",
".word" => "application/msword",
".wp" => "application/wordperfect",
".wp5" => "application/wordperfect",
".wp5" => "application/wordperfect6.0",
".wp6" => "application/wordperfect",
".wpd" => "application/wordperfect",
".wpd" => "application/x-wpwin",
".wq1" => "application/x-lotus",
".wri" => "application/mswrite",
".wri" => "application/x-wri",
".wrl" => "application/x-world",
".wrl" => "model/vrml",
".wrl" => "x-world/x-vrml",
".wrz" => "model/vrml",
".wrz" => "x-world/x-vrml",
".wsc" => "text/scriplet",
".wsrc" => "application/x-wais-source",
".wtk" => "application/x-wintalk",
".xbm" => "image/x-xbitmap",
".xbm" => "image/x-xbm",
".xbm" => "image/xbm",
".xdr" => "video/x-amt-demorun",
".xgz" => "xgl/drawing",
".xif" => "image/vnd.xiff",
".xl" => "application/excel",
".xla" => "application/excel",
".xla" => "application/x-excel",
".xla" => "application/x-msexcel",
".xlb" => "application/excel",
".xlb" => "application/vnd.ms-excel",
".xlb" => "application/x-excel",
".xlc" => "application/excel",
".xlc" => "application/vnd.ms-excel",
".xlc" => "application/x-excel",
".xld" => "application/excel",
".xld" => "application/x-excel",
".xlk" => "application/excel",
".xlk" => "application/x-excel",
".xll" => "application/excel",
".xll" => "application/vnd.ms-excel",
".xll" => "application/x-excel",
".xlm" => "application/excel",
".xlm" => "application/vnd.ms-excel",
".xlm" => "application/x-excel",
".xls" => "application/excel",
".xls" => "application/vnd.ms-excel",
".xls" => "application/x-excel",
".xls" => "application/x-msexcel",
".xlt" => "application/excel",
".xlt" => "application/x-excel",
".xlv" => "application/excel",
".xlv" => "application/x-excel",
".xlw" => "application/excel",
".xlw" => "application/vnd.ms-excel",
".xlw" => "application/x-excel",
".xlw" => "application/x-msexcel",
".xm" => "audio/xm",
".xml" => "application/xml",
".xml" => "text/xml",
".xmz" => "xgl/movie",
".xpix" => "application/x-vnd.ls-xpix",
".xpm" => "image/x-xpixmap",
".xpm" => "image/xpm",
".x-png" => "image/png",
".xsr" => "video/x-amt-showrun",
".xwd" => "image/x-xwd",
".xwd" => "image/x-xwindowdump",
".xyz" => "chemical/x-pdb",
".z" => "application/x-compress",
".z" => "application/x-compressed",
".zip" => "application/x-compressed",
".zip" => "application/x-zip-compressed",
".zip" => "application/zip",
".zip" => "multipart/x-zip",
".zoo" => "application/octet-stream",
".zsh" => "text/x-script.zshf"
);
//recuperation de l'extension d'un fichier ".extension"
	function getMimeType($file){
		return $content_type[".".pathinfo($file,PATHINFO_EXTENSION)];
	}
	$file = $_GET["file"];
//verification d'un eventuel encodage en base64 du nom du fichier
	if(isset($_GET["encode_name_file"])):
		if($_GET["encode_name_file"] === "true")$encodenamefile = true;
		if($_GET["encode_name_file"] === "false")$encodenamefile = false;
	else:
		$encodenamefile = false;
	endif; 
//verification de la demmande ou non demmande de protection contre la mise en cache
	if(isset($_GET["cache"])):
		if($_GET["cache"] === "true")$cache = true;
		if($_GET["cache"] === "false")$cache = false;
	else:
		$cache = true;
	endif;
//verification de l'envoie ou non d'un nom de ficher a inserer dans une eventuelle boite de telechargement
	if(isset($_GET["filename"])):
		if($_GET["filename"] !=== "null")$filename = array(true,$_GET["namefile"]);
		if($_GET["filename"] === "null")$filename = array(false);
	else:
		$filename = array(false);
	endif;
//decodage eventuel de nom du fichier a ouvrir
	if($encodenamefile):
		$file = base64_decode($file);
	else:
		$file = $file;
	endif;
//ouverture du fichier en streaming
	$stream = fopen($file,"rb");
	$ext = $content_type[getMimeType($file)];
	$size = filesize($file);
//envoie des entete du fichier
	header("Content-Type: ".$ext); //envoie du type de fichier
	header("Content-Length: ".$size); //envoie de la taille du fichier
	if($cache): //interdiction eventuel de mise en cache du fichier
	else:
		header("Cache-Control: no-cache, must-revalidate");
		header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
	endif;
	if($filename[0]): //envoie eventuel d'un nom de fichier a inserer dans une eventuel boite de telechargement
		header("Content-Disposition: attachment; filename='".$filename[1]."'");
	endif;
	header("Content-Transfer-Encoding: binary");
//envoie du contenue du fichier
	fpassthru($stream);
//fermeture du streaming
	fclose($stream);
?>


 Fichier Zip

Les Membres Club peuvent télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !

Télécharger le zip


 Sources de la même categorie

CONVERSION ET TEXTE DES TAILLE DE DONNÉES À PARTIRE D'UNE TA... par slhuilli
Source avec Zip EFFACER LES FICHIERS IMAGES ( .PNG ), D'UN RÉPERTOIRE TEMPS ... par christophe0511
COURTE ET SIMPLE FONCTION RÉCURSIVE POUR LECTURE DE RÉPERTOI... par mbdx
Source avec Zip Source avec une capture GESTIONNAIRE DE FICHIERS | MYSQL PHP 5.X {NEMENTON PHP MANA... par Nementon
Source avec Zip Source avec une capture LISTE REPERTOIRE (DIR EN PHP) par mephistope

 Sources en rapport avec celle ci

Source avec Zip JUKEBOX MP3 par sesebs
[POO PHP5] RÉCUPÉRATION DES INFOS DES STREAMS DE PULSRADIO par Epoc22
Source avec Zip Source avec une capture MP3THEQUE par xque19
POUR LES UTILISATEUR DE DARWIN STREAMING SERVER (OU QTSS) par NewSky
RADIO PHP V 0.1 par Cyrille2

Commentaires et avis

Commentaire de Palleas_44 le 30/09/2008 09:28:11

Ton code manque carrément de vérifications !
Et il y a des trucs pas uber logiques en algo :
if($encodenamefile):
$file = base64_decode($file);
else:
$file = $file;
endif;

Par exemple...

Commentaire de Toutoul le 30/09/2008 10:30:56

Alors la, je ne peut pas laisser cela... Regardez le code source :

if($cache):


On ne dois plus programmer de cette façon...

Commentaire de jbphp le 30/09/2008 12:46:10

Et ben koi if($cache): ??.........

Commentaire de Palleas_44 le 30/09/2008 12:55:15

Moi déjà, quitte à passer des infos dans l'url, passer un &var=true je trouve ça plutôt moche. J'aurais plutôt tendance à passer un paramètre donc http://www.monsite.com/stream.php?file=lala.txt&cache, mais c'est très personnel.

Sinon
if($_GET["cache"] === "true")$cache = true;
if($_GET["cache"] === "false")$cache = false;
pourrait  être allégé en utilisant un bête else, non ?

Commentaire de jbphp le 30/09/2008 12:57:35

oui ce n'ai pas bate

Commentaire de neigedhiver le 30/09/2008 14:35:14

Salut,

"Sinon
if($_GET["cache"] === "true")$cache = true;
if($_GET["cache"] === "false")$cache = false;
pourrait  être allégé en utilisant un bête else, non ?"

Ouais... Mais on peut faire plus malin :
$cache = (bool) $_GET['cache'];

En une ligne on assigne et on s'assure qu'on n'a pas une valeur dangereuse.

Quant au :
    if($cache):
j'aimerais aussi savoir ce qu'on lui reproche...

Je m'arrête là dans mes commentaires, parce que je n'ai pas regardé en détails la source.

Commentaire de Palleas_44 le 30/09/2008 14:37:24

> $cache = (bool) $_GET['cache'];

Oui mais si cache n'existe pas dans l'url ? :x

Commentaire de neigedhiver le 30/09/2008 16:12:52

Au temps pour moi... 2 options :

1/ $cache = (bool) @$_GET['cache'];

2/ $cache = isset($_GET['cache']) ? (bool) $cache : false;

Le @ peut déplaire à certains puristes/intégristes... D'une manière générale, je recommande de l'éviter. Mais dans ce cas là, on contrôle parfaitement ce qui se passe : si $_GET['cache'] n'est pas défini, PHP émet une notice, mais renvoit quand même null. En castant avec (bool), on obtient false.
L'erreur (plus précisément la notice) est entièrement contrôlée, donc pas de problème.
La deuxième option est plus coûteuse en ressources (bon euh 3 fois rien, hein), du fait de l'opérateur ternaire, mais plus rigoureuse.

Commentaire de jbphp le 30/09/2008 17:39:37

Ba en faite j'ai que 15ans donc pas surper douer.
Mais bon, moi je m'en sert sur mon site qui propose des vidéos qui ont des droits d'auteurs et qu'ils ne faut surtout pas dl. et ca marche niquel(encodage en b64).

Commentaire de jbphp le 30/09/2008 17:40:26

Des Notes S'il vous plais.

Commentaire de Toutoul le 30/09/2008 18:03:16

C'est plutot l'utilisation des : qui pose problème... Utiliser la technique des endif n'est plus conseillé depuis un moment... Suivant les version de php, cela peux ne pas fonctionner

Commentaire de dardelphi le 30/09/2008 19:18:38

Source correcte surtout pour un débutant !

Commentaire de jbphp le 30/09/2008 19:25:33

Une Note, Une Note, Une Note, Une Note, Une Note, Une Note!!!!!!!!!!!!!

Commentaire de neigedhiver le 01/10/2008 09:22:24

"Utiliser la technique des endif n'est plus conseillé depuis un moment... Suivant les version de php, cela peux ne pas fonctionner"

Ah bon ? Pas conseillée par qui ? Pourquoi ?
Dans quelles conditions est-ce que ça peut ne pas fonctionner ?

Quand on lit la doc, on voit que les blocs if...elseif...else ont deux syntaxes, l'une avec les accolades, l'autre avec les deux points et endif;
http://fr.php.net/manual/fr/control-structures.alternative-syntax.php
Aucune information concernant une configuration particulière nécessaire.

Après, s'il y a une différence de performances, ça mériterait d'être benché.

Commentaire de simonviei le 06/10/2008 07:02:39

Code : http://wall.deblan.fr/1223269371/php/1/
Resultat du bench : http://bordel.deblan.fr/images2/bench.jpg

Commentaire de alphanono le 06/10/2008 08:38:51

Effectivement, je crois que c'est claire ... c'est kifkif ... Ca m'aurait étonné aussi.

C'est quoi que tu appelles streaming exactement ? Parceque je ne suis pas sûr qu'on appel streaming la même chose ...

Commentaire de olaf_le_preus le 06/10/2008 08:48:10 8/10

Pour ta note : puisque ça te sert, ça fonctionne, les critiques sont controversées, tu vois bien à peu près ce qu'il en est et tu pourrais bien te noter toi-même...
Peut-être entre 5 et 8...

Commentaire de jbphp le 06/10/2008 09:13:27

Pr répondre alphanono: bonne remarque, en faite j'ai appelé ca streaming mais je savais pas trop.
Si tu as un autre nom a me suggérer, je suis preneur...
Et merci OLAF_LE_PREUS...  

Commentaire de jadu le 06/10/2008 10:37:00

Pour moi le streaming c'était pour avoir une vidéo en continu sur son site.
Ici je pige pas ! ? !?

Puis-je avoir des compléments d'informations ???
Même si j'ai 60  ans ! merci ;-)

Commentaire de neigedhiver le 06/10/2008 10:47:41

Salut,

Pour moi, ce qu'on voit sur Youtube, Dailymotion et autres, ce n'est pas du streaming. Les vidéos sont chargées, point barre.
Même sur Deezer, ce n'est pas du streaming.

Du streaming, c'est pas exemple une radio winamp : quand on "capte" le flux (puisque stream en anglais, c'est un flux) qui doit être continu (sinon tout ce qui se télécharge sur le net est un flux...), on le prend "là où il est", pas depuis le début.
Une webcam qui diffuse ses images en temps réel, c'est du streaming. Une radio winamp, c'est du streaming. Les vidéos de Youtube, non...
La manière de présenter le contenu multimédia importe peu, c'est la technologie qui le diffuse qui importe réellement.

Bon c'est mon avis, et je ne prétends pas détenir la vérité sur ce sujet.

Commentaire de alphanono le 06/10/2008 11:07:48

Voilà, c'est à peu prêt mon avis aussi. A la différence prêt que 'on le prend "là où il est"' n'est pas tout à fait exact. Le streaming continu, c'est la lecture en temps réel d'un flux de données. Dans le cas du direct, on comprend bien ... mais on peut aussi faire du streaming en différé. C'est ce qui donne la possibilité de regarder une vidéo et de prendre un point de lecture n'importe où sur la timeline avant même que la vidéo ne soit chargé. Le serveur arrête alors d'envoyer le flux précédent, se recale sur la position demandée et recommance à balancer le flux depuis cette nouvelle position.
En bref, comme dit avant, sur Youtube etc. on a le serveur qui envoie les données d'une vidéo. Ces données s'enregistrent sur le disque de l'internaute et sont lues une fois qu'il y a assez de données pour ça.
Dans le principe du streaming, on saute l'étape enregistrement sur le HDD. On lit en temps réel (ou presque) un flux de données.

Commentaire de jadu le 06/10/2008 11:37:46 2/10

OK ! ce n'est donc pas du streaming dans ce code source !
donc le titre est accrocheur et .... nôôÔÔoon, je ne pense pas que ce soit volontaire !

Commentaire de jadu le 06/10/2008 11:40:53

j'avais marqué : [quote]Pour moi le streaming c'était pour avoir une vidéo en continu sur son site.[/quote]
mais en fait sur mon site ma vidéo ne transmet que de 7 h 00 à 22 h 00  car de 22 h à 6 h 59 je dors et les volets des fenêtres sont fermés !

mais c'est bel et bien du streaming que je fais sur mon site, donc ! ([i]même avec mes 60 ans ! [/i])
;-D

Commentaire de alphanono le 06/10/2008 11:42:37

De toute façon, ce n'est pas un langage de programmation qui va te permettre de faire du streaming. Il faut une technologie serveur spéciale pour ça.
J'ai trouvé ça : http://www.rince.fr/spip.php?article35

Commentaire de vincseize le 06/10/2008 14:15:02 8/10

...

Commentaire de jbphp le 06/10/2008 17:30:17

koi "..."

Commentaire de gentilKiki le 09/10/2008 08:31:20

Salut,
Ce n'est pas du streaming, du vrai, mais bel et bien du download.
Pour le streaming il y a le protocole rtsp
http://fr.wikipedia.org/wiki/Real_Time_Streaming_Protocol

Quant a la note, bon travail sur les headers. 5

Commentaire de jadu le 09/10/2008 12:18:45

ok

Commentaire de cecilien76 le 02/02/2009 15:38:47

Yop
Bon j'ai du mal a piger ce que tu ve faire avec ce code m'enfin pour le streaming ya des chose plus simple comme les server shoutcast ou autre , mais bon chacun son truc

Commentaire de Djazzyman le 13/02/2009 02:46:33

Salut JBPHP,

Je ne comprends pas bien ta démarche.

Tu dis en effet ceci :
"Mais bon, moi je m'en sert sur mon site qui propose des vidéos qui ont des droits d'auteurs et qu'ils ne faut surtout pas dl."

Je viens de tester ton code sous Firefox et IE, et j'obtiens dans tous les cas une boîte de dialogue permettant d'ouvrir mon fichier AVI avec VLC et permettant d'ENREGISTRER ce fichier sur mon disque dur.

Ai-je raté quelque chose ?

J'aurais bien été intéressé par ton code, mais le coup de la boîte de dialogue...
Peux-tu me dire comment empêcher cela ?

Sinon, pour le reste, je rejoins entièrement l'avis de GENTILKIKI

Commentaire de jbphp le 13/02/2009 14:54:06

Slt,
moi quand je l'utilise,  je'appelle le fichier streaming.php depuis une anim' flash avec le nom du fichier crypté en base64. Le contenu n'est pas du avi mais du flv aucune fenetre de souvre. N'esite pas si tu as d'autres questions.
JBPHP

Commentaire de Djazzyman le 14/02/2009 15:29:46 6/10

Salut,

Je comprends désormais beaucoup mieux ta démarche : en utilisant ton fichier avec du Flash, pas de boîte de dialogue intempestive !

Bon, par contre, il existe quand même des techniques pour pomper tes vidéos, mais c'est déjà un niveau de sécurité supplémentaire.

Sinon, il y a quelques améliorations à apporter à ton code :

Ligne 676 :
#  else:
# $file = $file;
# endif;
=> !!!
tu peux t'en passer, puisque $file est initialisé plus haut dans ton code.

Ligne 681 :
#  $ext = $content_type[getMimeType($file)];
=> Ce serait pas plutôt :
#  $ext = getMimeType($file);  ???

Ligne 686 :
#  if($cache):
# else:
....
=> à remplacer plutôt par :
#  if(! $cache): ou if($cache === false):
...

Pour finir, ton procédé est ingénieux et tu as fait un bon boulot sur les header : je te mets 6

Djazzyman


Commentaire de jbphp le 14/02/2009 18:48:33

Salut Djazzyman,
      Je suis en train de refaire entièrement mon script sous forme de classe.
      Mais je ne vais pas m'arreté là.
      Je vais maitre en place d'autre classe dont une qui servira à apeller des pages en luis envoyant au besoins des des information par POST, GET, des entetes specifiques ect...
      Donc il y a peu de chanse de chanse que je revoie ce script vue que je suis en train de developer une sorte framework de gestion de fichier.

      Donc voila. Je reste a votre disposition JB.

Commentaire de v2602 le 05/04/2009 23:33:33 9/10

je dis 10/10 moi pour le gamin de 15ans qui pond çà! enfin 9/10 parce que c est pas ce que je cherchais.....

Mais je cherche comment moi , mec qui comprend rien a la programation à part faire des copier coller de script sur du html en gros...
comment pourrais je  METTRE MA pauvre WEBCAM usb EN STREAMING sur ma page html ou php .

Genre si mon ordi est allumé , je vais voir sur ma page et je vois chez moi a distance... :)

j ai trouvé des truc tout fait qui renvoi vers leur site et du coup plein de monde peu voir ... et çà j aime pas , alors jme met doucement a flash dream html php javascipt...


Merci

Commentaire de cecilien76 le 06/04/2009 03:56:54

Yop ici
v2602
Tout est expliquer ici avec ce tuto facile d'emploi que j'ai deja tester : http://www.todae.fr/winamp/pasapas/webradiotv/nsv/?page=nsvcap

Cordialement

Commentaire de cecilien76 le 06/04/2009 04:01:09

Re yop
Hé pour le code pour les gens puisse te voir sur ton site insere sa dans ta page web

<object classid="clsid:C5E28B9D-0A68-4B50-94E9-E8F6B4697514" width="326" height="255" border="0" codebase="http://www.nullsoft.com/nsv/embed/nsvplayx_vp3_mp3.cab#Version=-1,-1,-1,-1" id="nsvplayx" align="absmiddle">
  <param name="Location" value="http://www.monsite.com/repertoire/ma_video.nsv" ref>
  <param name="_Version" value="65536">
  <param name="_ExtentX" value="8625">
  <param name="_ExtentY" value="6747">
  <param name="_StockProps" value="0">
  <param name="Bandwidth" value="">
  <embed type="application/x-nsv-vp3-mp3" width="320" height="240"
codebase="http://www.nullsoft.com/nsv/embed/nsvmoz_vp3_mp3.xpi" location="http://www.monsite.com/repertoire/ma_video.nsv"></embed>
</object>

Voila lol

Commentaire de petazlhades le 16/06/2009 09:42:44

lol mais c'est quoi cette facon de coder? if, else .... loooooooooool

 Ajouter un commentaire


Discussions en rapport avec ce code source dans le forum

Streaming MP3 [ par TiotBour ] Bonjour, j'avais poster un message pour lire un mp3 sur une page web. Je remerci encore une fois les personnes ayant repondu a mon post.Maintenant mon Streaming video [ par jbouv55151 ] Salut a tous,J'ai une vidéo en wmv et j'aimerais savoir comment faire pour faire un une page en streaming comme les bande-annonce sur allo ciné.Si qq1 demenagement mortel [ par roba ] J'utilise un script php3 pour des ecartes, sur le serveur tiscali tout marche bien mais depuis que je l'ai demenag&#233; il ne fonctionne plus et cela Webradio: insertion des données d'une page dans une autre. [ par b3b3n ] Bonjours, Je possede une webradio: http://stream.ekzay.com:9560 et j'aimerais inserer les donn&#233;es de cette page dans une autre. Voici les donn&# Probleme de stream [ par ckryo ] Bonjour, J'aurais voulu savoir que faire qd on a ce message d'erreur : Notice: fopen(): Unable to find the wrapper "https" - did you forget to enabl Streaming audio [ par mo_de_lyon ] SOS je cherche &#224; r&#233;aliser du streaming audio&nbsp;. Ce que je veux r&#233;aliser au fait, c'est un petit site ou l'on puisse &#233;couter gr enregistrer une chaine de caracteres dans un stream [ par Yossi ] Bonjour, je voudrais savoir comment enregistrer une chaine de caracteres dans un stream sans passer par un fichier. Ce que je veux c'est le contra projet [ par abdmoneem ] salut je suis un etudiant que je doit faire un projet de serveur de streaming de video d'extension .flv (flash), j'ai trouver des difficultes sur la c SCRIPT WEBCAM STREAMING sur PHP [ par v2602 ] tout est mis dans le titre , existe il un petit srcipt qui affiche un jpg tout les sec par exemples sur ma page perso html et comment aller chercher l Proposition d'emploi - Mobibase [ par utopia ] Mobibase est la référence en matière de contenu et de plateforme pour mobile .- Expertise :Une plateforme de livraison de contenu et de Mobile TV- Le


Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Février 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,796 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales