The content is empty after IE in Excel
$name = ' 1.xls ';
$file = fopen ($name, "RB"); Open File
Header (' Content-type:application/octet-stream;charset=utf-8 ');
Header ("Content-type:application/force-download");
Header (' accept-ranges:bytes ');
Header (' accept-length: '. FileSize ($name));
Header (' content-disposition:attachment; Filename= '. $filename. ');
Echo fread ($file, FileSize ($name));
Fclose ($file);
With Firefox and Google download is normal, and after the download of IE file content is empty.
------Solution--------------------
$name = ' 1.xls ';
$file = fopen ($name, "RB"); Open File
Header (' Content-type:application/octet-stream;charset=utf-8 ');
Header ("Content-type:application/force-download");
Header (' accept-ranges:bytes ');
Header (' accept-length: '. FileSize ($name));
Header (' content-disposition:attachment; Filename= '. $name. ');
ReadFile ($name);
Fclose ($file);
Give it a try.
------Solution--------------------
Then I don't know. I heard there are a lot of 360 browser problems. It's best not to avoid it.
I don't have 360 browsers, and I can't test it for you.
------Solution--------------------
Do not use this method, you have to download a phpexecl plug-in use, the site can be downloaded directly, not subject to any browser problems
http://phpexcel.codeplex.com/Download Address
------Solution--------------------
Agree to the 6 floor proposal. Phpexcel is really powerful. References: Do
not use this method, you have to download a phpexecl plug-in use, the site can be downloaded directly, not subject to any browser problems
http://phpexcel.codeplex.com/Download Address
------Solution--------------------
Try it with the file_get_contents function?