php输出.doc .xls等word和excel文件格
时间:2007-02-18 来源:PHP爱好者
CODE:
[复制到剪切板]
<?php
//改动相应文件头就可以输出.doc .xls等文件格式了
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";
?> php爱好者站 http://www.phpfans.net 为phper提供一切资讯.
//改动相应文件头就可以输出.doc .xls等文件格式了
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";
?> php爱好者站 http://www.phpfans.net 为phper提供一切资讯.
相关阅读 更多 +