<html><body>bla bla bla</html></body>
col1, col2
cell1, cell2,
cell3, cell4
and it *should* just be the col/cell stuff, without the html.
my hunch is that i'm messing up with the headers somehow, like I'm failing to clear the current output before re-outputing the csv data or something. My header declarations look like this:
Code: Select all
//$out = mysql conversion to csv
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Length: " . strlen($out));
header("Content-type: text/x-csv");
header("Content-Disposition: attachment; filename=$filename");
echo $out;
exit;