<?php
// information concernant le fichier à télécharger
$fichier = ´mon_repertoire/mon_fichier.jpg´;
$nom_fichier = ´mon_fichier.jgp´;
// téléchargement du fichier
header(´Content-disposition: attachment; filename=
´.$nom_fichier);
header(´Content-Type: application/force-download´);
header(´Content-Transfer-Encoding: fichier´);
header(´Content-Length: ´.filesize($fichier));
header(´Pragma: no-cache´);
header(´Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0´);
header(´Expires: 0´);
readfile($fichier);
?>
SOURCE : http://www.izidoo.com/php-mysql/190/