par
jeff » 11 févr. 2005, 23:45
bon apparement ca fonctionne par contre ma solution n'est pas tres prope
pour la transmision de la variable un reloade en js
comme ce type de post est reccurent dans d'autre phorum et que phpfrance ce reconstruit je laisse monmon code pout forcer le dl (y a une faq?)
if($dir=opendir('$chemin'))
{
$monfichier =$_SESSION['path'];
header("Content-type: application/force-download");
header("Content-Transfer-Encoding: rar");
header("Content-Type: application/octet-stream");
header("Content-Length: ".filesize($monfichier));
header("Content-Disposition: attachment; filename=".$monfichier);
readfile($monfichier);
}
salut et merci