FireFoxでもIEでもCSVダウンロード

header(“Expires: ” . gmdate(“D, d M Y H:i:s”,time() – 3600 * 24 * 365) . ” GMT”);
header(“Last-Modified: ” . gmdate(“D, d M Y H:i:s”) . ” GMT”);
header(“Cache-Control: no-store, no-cache, must-revalidate”);
header(“Cache-Control: post-check=0, pre-check=0”, false);
header(“Pragma: no-cache”);
header(“Cache-Control: public”);
header(“Pragma: public”);
header(“Content-type: application/x-msexcel-csv”);
header(“Content-Disposition: inline; filename=hoge.csv”);

print $csvdata.
exit;