当前位置:首页> PHP教程> php进阶
关键字
文章内容
php输出.doc .xls等word和excel文件格
 
 
修改时间:[2010/08/05 20:57]    阅读次数:[2461]    发表者:[起缘]
 
<?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技术网站, 有相当丰富的文章和源代码.)