Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling DOTNET COM extension in PHP 5.6.12

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=

I am still gettting errors saying Class 'COM' not found.
Any suggestions on what to do?
Thanks.

like image 485
BourneShady Avatar asked Mar 13 '23 07:03

BourneShady


1 Answers

First check this in php.ini

[PHP_COM_DOTNET]
extension=php_com_dotnet.dll

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

it must solve your problem.

like image 137
Hossein Avatar answered Mar 16 '23 03:03

Hossein