在PHP 5.6.12中启用DOTNET COM扩展 [英] Enabling DOTNET COM extension in PHP 5.6.12
问题描述
在一个PHP项目中,我需要使用 DOTNET COM库,但我看到它已被禁用.
我不知道如何启用它,因此我尝试在[com]部分下的 php.ini
文件中取消注释以下行:
In a PHP project I need to use the DOTNET COM library, but I saw it is disabled.
I don't know how to enable it, so I tried uncommenting the following lines in my php.ini
file, under the [com] section:
com.typelib_file = php_com_dotnet.dll
com.allow_dcom = true
pextension=php_com_dotnet.dll
com.autoregister_typelib = true
com.autoregister_casesensitive = false
com.autoregister_verbose = true
com.code_page=
我仍然遇到错误,提示未找到 Class'COM'
.
有什么建议怎么办?
谢谢.
I am still gettting errors saying Class 'COM' not found
.
Any suggestions on what to do?
Thanks.
推荐答案
首先在php.ini中进行检查
First check this in php.ini
[PHP_COM_DOTNET]
extension=php_com_dotnet.dll
在您说了php来查找扩展并启用扩展功能之后,它就会显示.您必须删除;"从这一行的第一行开始:
after it chek where you said php to look for extension , and to enable extention. you must remove ";" from first of this line :
extension_dir = "ext"
并使用此标志启用扩展名
and enable extension with this flag
enable_dl = On
它必须解决您的问题.
这篇关于在PHP 5.6.12中启用DOTNET COM扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!