- 相关推荐
php生成word最简单的例子
代码示例:
<?php
class word
{
function start()
{
ob_start();
print'<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">';
}
function save($path)
{
print "</html>";
$data = ob_get_contents();
ob_end_clean();
$this->wirtefile ($path,$data);
}
function wirtefile ($fn,$data)
{
$fp=fopen($fn,"wb");
fwrite($fp,$data);
fclose($fp);
}
}
?>
【php生成word最简单的例子】相关文章:
PHP生成Word文档的方法06-28
PHP生成器简单实例09-07
php动态生成JavaScript代码10-03
php摘要生成函数详解09-02
php如何生成随机密码07-01
php生成圆角图片的方法技巧07-20
php生成图片缩略图的方法08-23
word2003如何生成目录07-05
php生成高清缩略图实例08-12