首页 > Web开发 > 详细

php配置COM组件正常运行

时间:2017-07-02 09:57:42      阅读:532      评论:0      收藏:0      [点我收藏+]

1. http://www.cnblogs.com/yuanke/p/4973824.html

在php.ini中

a. com.allow_dcom = true

b. extension=php_com_dotnet.dll


2. https://stackoverflow.com/questions/12104775/cant-open-word-doc-with-com-in-php/12105160#12105160

(如果有问题,去看它的回答,有另一种方法 )

  • Execute "dcomcnfg"
  • Open Component Services > Computers > My Computer > DCOM Config
  • Search for Microsoft Office Word 97-2003 Document (it will be something like this translated to your language, so take a while and search for it) 
  • Right-Click on it and open the properties
  • Choose "Identity" tab
  • Normally this is set to "the launching user". You have to change this to "the interactive user" or a admin user of your choice.
  • Apply these new settings and test your COM application. It should work fine now.

 

php配置COM组件正常运行

原文:http://www.cnblogs.com/turtlegood/p/7105048.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!