I am trying to use COM object in my script and running the script on linux server and got below error.
Fatal error: Class 'COM' not found
Any help?
You can serve a COM object to a Windows client, connect to one running on a Windows host etc, - but you can't run it under Linux.
On a Windws host running PHP >= v5 you need to enable it in php.ini:
[PHP_COM_DOTNET] extension=php_com_dotnet.dll
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
yesterday
viewed
25 times
active
today