getId() > 0) { $lsFileName = './fichiers/'.$loLudo->getFichier(); $lsBrowser = $_SERVER['HTTP_USER_AGENT']; $loLudo->incDownload(); if (detect_browser($lsBrowser) == "ie") { Header("Content-type: application/force-download"); } else { Header("Content-Type: application/octet-stream"); } Header("Content-Length: ".filesize($lsFileName)); Header("Content-Disposition: attachment; filename=".$loLudo->getFichier()); readfile($lsFileName); } } start_download($liId); ?>