par
mateo2996 » 16 déc. 2013, 17:04
Salut !
Essaye avec cette commande :
$fileName = "C:\TonFichier"; modifie et met la source de ton fichier.
header('Content-disposition: attachment; filename='.$fileName);
header('Content-Type: application/force-download');
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($fileName));
header("Pragma: no-cache");
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Expires: 0");
readfile($fileName);
Ciao
Matéo
Salut !
Essaye avec cette commande :
[php]$fileName = "C:\TonFichier"; modifie et met la source de ton fichier.
header('Content-disposition: attachment; filename='.$fileName);
header('Content-Type: application/force-download');
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($fileName));
header("Pragma: no-cache");
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Expires: 0");
readfile($fileName);[/php]
Ciao
Matéo