php输出.doc .xls等word和excel文件格

php输出.doc .xls等word和excel文件格



[复制到剪切板]
CODE:
<?php
//改动相应文件头就可以输出.doc .xls等文件格式了
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=test.xls");
echo 
"test1\t";
echo 
"test2\t\n";
echo 
"test1\t";
echo 
"test2\t\n";
echo 
"test1\t";
echo 
"test2\t\n";
echo 
"test1\t";
echo 
"test2\t\n";
echo 
"test1\t";
echo 
"test2\t\n";
echo 
"test1\t";
echo 
"test2\t\n";
?> ;


如履薄冰

谢谢!有没有可以在word中插入图片的