<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_17544"> <span style="font-family:'Courier New', Courier, monospace;line-height:21px;font-size:14px;color:#333333;">php生成excel文档 </span> <div class="blockcode"> <div id="code_s97"><ol><li><? <li>header("Content-type:application/vnd.ms-excel"); <li>header("Content-Disposition:filename=test.xls"); <li>echo "test1t"; <li>echo "test2tn"; <li>echo "test1t"; <li>echo "test2tn"; <li>echo "test1t";<li>//PHP开源代码<li>echo "test2tn"; <li>echo "test1t"; <li>echo "test2tn"; <li>echo "test1t"; <li>echo "test2tn"; <li>echo "test1t"; <li>echo "test2tn"; <li>//改动相应文件头就可以输出.doc .xls等文件格式了 <li>?> </li></ol></div> <em onclick="copycode($('code_s97'));">复制代码</em> </div> </td></tr></table> <div id="comment_17544" class="cm"> </div> <div id="post_rate_div_17544"></div> <br><br>