header("Content-Type: application/vnd.ms-excel");
header("Accept-Ranges:bytes");
header("Content-type:charset=utf-8");
header("Content-Disposition: attachment; filename=".$filename);
header("Pragma: no-cache");
header("Expires: 0");再IE7下面支持导出保存。。但是在IE6下面保存成了PHP文件。请问是哪里问题呢。小弟在此感谢了
header("Accept-Ranges:bytes");
header("Content-type:charset=utf-8");
header("Content-Disposition: attachment; filename=".$filename);
header("Pragma: no-cache");
header("Expires: 0");再IE7下面支持导出保存。。但是在IE6下面保存成了PHP文件。请问是哪里问题呢。小弟在此感谢了
<?php
$filename = 'abc.xls';
header("Content-Type: application/vnd.ms-excel");
header("Accept-Ranges:bytes");
header("Content-type:charset=utf-8");
header("Content-Disposition: attachment; filename=".$filename);
header("Pragma: no-cache");
header("Expires: 0");
echo "hello\tworld";
?>就这么简单的东西,ie6也不行?
header("Content-Disposition:filename=test.xls");