Hello Guys,

I am trying to download the csv file using php.It is downloading in FF but not in IE.
For ex the filename is student_data.csv which is in csv folder.
PHP Code:
$str_filename "csv/student_csvdata.csv";

$str_ctype "application/octet-stream";

header("Cache-Control: no-store, no-cache, must-revalidate");

header("Cache-Control: post-check=0, pre-check=0"false);

header("Cache-Control: private",false);

header("Pragma: no-cache");

header("Content-Type: "$str_ctype);

header ("Content-Disposition: attachment; filename=\""basename($str_filename)."\"");

header("Content-Transfer-Encoding: binary\n");

header ("Content-Length: " filesize($str_filename));


In IE , When the download dialog box appears the name displays is
student_data_csv. And not downloading the file.

What I am doing wrong?Please help me.