Possible Duplicate:
PHP - how to create a newline character?
I'm trying to create a csv file. But all i get is one row. I thought
echo '\r\n' . $lineStr;
would create a new line.
I have added the following headers:
header("Content-Type: application/vnd.ms-excel; charset=utf-8");
header("Content-Disposition: attachment; filename=myFile.xls");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);