PHP打开word文档
在php.ini中将下面代码前的;去掉
;com.allow_dcom = true
PHP中写入下列代码
<a href="xxx.doc">文件查看</a> 点击 文件查看 就可以在word中查看word文档