php – Class ‘COM’ not found

168

COM and DOTNET are not available by default in PHP Core, php.ini.  You have to manually add COM support to PHP if you face issue. Typically, you get an error message as

fatal error uncaught error class ‘com’ not found in php

Step 1.Copy php_com_dotnet.dll located in xampp\php\ext folder to c:/windows/system32/

Step 2.Add following to php.ini file located in xampp\php folder

[COM_DOT_NET]
extension=php_com_dotnet.dll
extension = c:/windows/system32/php_com_dotnet.dll

Step 3.Restart Apache Services



Related Articles & Comments

Thank you for visiting us. To continue receiving updates, please Subscribe to our Social Media Channels.

Google+
FACEBOOK
RSS
YOUTUBE
Menu Title
%d bloggers like this: