php操作word,excel,具体怎么操作呀? php操作word,excel,具体怎么操作呀? unix系统的服务器可以操作word,excel吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 COM,在安装了OFFICE的WINDOWS下。 哦,必须要先安装OFFICE吗? 那在unix系统下可以吗 能告诉我下,具体怎么操作excel吗,或者给个简单的例子呀 phpexcel 搜索一下,这个操作excel很强,没有环境限制简单例子http://www.ityizhan.com/phpexcel-write-and-read-excel-examples/http://www.111cn.net/phper/21/0f2be0707f8785fb8e715f22bdc43c8a.htm下载Phpexcelhttp://phpexcel.codeplex.com/ <?/*** @desc PHP读取Word文档**/$word = new COM("word.application") or die ("Could not initialise MS Word object.");$word->Documents->Open(realpath("asd.doc"));// Extract content.$content = (string) $word->ActiveDocument->Content;echo $content; $word->ActiveDocument->Close(false);$word->Quit();$word = null;unset($word); ?> pear里有个excel类excel-reader header("Location:index.php")页面跳转问题 怎么判断已选中并且加粗 php substr mb_substr 我有个PHP程序,想设置域名绑定加密,怎么实现? php,如何传递类 继续问,关于query("set names 字符集")引起的其他问题 紧急求助:$arg_list是变量还是数组?? fsockopen是不是不能保存cookie跟session? pdflib中如何使用背景图片啊 请问这个数组该怎么访问? 怎么实现PHP代码和html代码100%分离 这个符号$street_id && $rs[]什么意思的呢
http://www.ityizhan.com/phpexcel-write-and-read-excel-examples/
http://www.111cn.net/phper/21/0f2be0707f8785fb8e715f22bdc43c8a.htm下载Phpexcel
http://phpexcel.codeplex.com/
<?
/**
* @desc PHP读取Word文档
*
*/
$word = new COM("word.application") or die ("Could not initialise MS Word object.");
$word->Documents->Open(realpath("asd.doc"));// Extract content.
$content = (string) $word->ActiveDocument->Content;echo $content;
$word->ActiveDocument->Close(false);$word->Quit();
$word = null;
unset($word);
?>
excel-reader