Class 'Com' Not Found

Class 'COM' not found

From PHP 5.4.5, COM and DOTNET is no longer built into the php core.you have to add COM support in php.ini:

[COM_DOT_NET]
extension=php_com_dotnet.dll

Otherwise you will see this in your error log:
Fatal error: Class 'COM' not found

The extension is included with php 5.4.5 for Windows.

Fatal Error Class COM not found with extension php_com_dotnet installed

PHPRC Environment Variable was missing


PHPRC = C:\php

After looking around a little bit more, I found the problem was caused by the manual copy of the PHP folder, because I've skipped the installation with the .msi file. The installation file not only add PHP folder to PATH variable but it also creates a new variable called PHPRC which determines where the Runtime Configuration is located (C:\php by default).

Fatal error: Class 'COM' not found PHP. Win7 - Apache - PHP

Add COM support in php.ini:

 [COM_DOT_NET]
extension=php_com_dotnet.dll

PHP Class 'COM' not found

From the user comments on the PHP website:

From PHP 5.4.5, COM and DOTNET is no longer built into the php core. You have to add COM support in php.ini.



Related Topics



Leave a reply



Submit