website logo
Auteur
avatar
Tito

Forum » » Le coin des codeurs » » Forcer le téléchargement d'un fichier - problème


Posté : 24 janv. 2006 à 22:10 icone du post


<?php
header
("!content-type:! application/force-download");
header(
"!content-disposition:! attachment; filename=seq1.wav");
readfile(
"./ess/seq1.wav");
?>


N'oublie pas d'enlever les points d'exclamation

Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=19052&forum=5