【php开源代码栏目提醒】:网学会员,鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“word.php”一文,供大家参考学习!
<?php
class word
{
function start()
{
ob_start();
}
function save($path)
{
$data = ob_get_contents();
ob_end_clean();
$this->wirteto
word($path,$data);
}
function wirtetoword ($fn,$data)
{
$fp=fopen($fn,"wb");
fwrite($fp,$data);
fclose($fp);
}
}
?>