Bonjour à tous !
J'aimerais griser l'option "ouvrir" d'une boite de dialogue de
téléchargement pour obliger l'utilisateur à enregistrer le fichier.
Quelqu'un aurait une idée ?
$text = 'toto';
header("Content-type: application/force-download");
header("Content-disposition: attachment; filename=toto.rtf");
header("Content-Description: Download Data");
header("Content-length: " . strlen($text));
header("Content-Type: binary/octet-stream");
header("Pragma: no-cache");
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
die($text);