salut,
$filename = nom du fichier //ex:cours.pdf
$file = chemin du fichier //ex:site/files/cours.pdf
$size = taille du fichier tu peut utiliser
size = filesize($file);
header("Content-Type: application/force-download; name="$filename"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename="$filename"");
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("location:$file");
CORDIALEMENT