php生成excel文档
<? header("Content-type:application/vnd.ms-excel"); header("Content-Disposition:filename=test.xls"); echo "test1t"; echo "test2tn"; echo "test1t"; echo "test2tn"; echo "test1t"; echo "test2tn"; echo "test1t"; echo "test2tn"; echo "test1t"; echo "test2tn"; echo "test1t"; echo "test2tn"; //改动相应文件头就可以输出.doc .xls等文件格式了 ?>