Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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?

share|improve this question

migrated from unix.stackexchange.com yesterday

1 Answer

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.