Return to Snippet

Revision: 33881
at October 14, 2010 19:19 by uilgenstein


Initial Code
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false); // required for certain browsers 
header("Content-type: application/csv");
header("Content-Disposition: filename=\"filename.csv\";");
header("Content-Transfer-Encoding: binary");

Initial URL

                                

Initial Description

                                

Initial Title
Force download (CSV) file

Initial Tags

                                

Initial Language
PHP