![Picture of André Weiss Picture of André Weiss](/graphics/unknown.gif)
André Weiss - 2011-04-07 18:24:37 -
In reply to message 9 from John Ralph
$file = "name_of_file.xls";
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Disposition: attachment; filename=".basename($file).";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($file));
Work´s fine! =))