$file_url = '..TON FICHIER...'; header("Cache-Control: no-cache, must-revalidate"); header("Cache-Control: post-check=0,pre-check=0"); header("Cache-Control: max-age=0"); header("Pragma: no-cache"); header("Expires: 0"); header("Content-Type: application/force-download"); header("Content-disposition: attachment; filename=\"" . basename($file_url) . "\""); readfile($file_url);
6 févr. 2017 à 18:32