文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>PHP生成word文档的代码

PHP生成word文档的代码

时间:2008-04-18  来源:剑心通明


[url=javascript:;]PHP[/url]
生成word文档的
[url=javascript:;]代码[/url]
,这个是用来生产试卷的简单PHP代码



试卷生成



difficulty."
";
$cout.="   ".$row->content."
";
}//while
?>
';
}
function save($path)
{
print "";
$data = ob_get_contents();
ob_end_clean();
$this->wirtefile ($path,$data);
}
function wirtefile ($fn,$data)
{
$fp=fopen($fn,"wb");
fwrite($fp,$data);
fclose($fp);
}
}
/*-------word class End-------*/
$word=new word;
$word->start();
echo $cout;
$wordname="word/".time().".doc";
$word->save($wordname);//保存word并且结束.
?>
" target=_blank class="unnamed1">试卷已经生成,请点击这里查看


您输入的条件不足,请重新输入!




相关阅读 更多 +
排行榜 更多 +
西安交大通

西安交大通

生活实用 下载
长江云通

长江云通

生活实用 下载
translatez

translatez

生活实用 下载