试试
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment;filename="myfile.xls"');
看
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment;filename="myfile.xls"');
看
exit;
exit;就好了。