I have a script that generates a csv file using the following code: header(\'Content-type: text/csv\');