donc jouvre une nouvelle page dans le quel on trouve exactement sa :
<?
$file= $_GET["download"];
//telechargement
$taille=filesize("doc/$file");
header("Content-Type: application/force-download;
name=\"$file\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: $taille");
header("Content-Disposition: attachment; filename=\"$file\"");
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
readfile("doc/$file");
exit();
?>
Je la sauvegarde au nom de download.php puis ensuite sur ma page de chose a telecharger je met comme lien
<a
href="download.php?dowload=lenomdufichier.extenion
">mon fichier</a>
C´est sa ?