The project needs to write a COM component using VC ++ for PHP to call, but the PHPFatalerror: ClassCOMnotfoundin error message appears when PHP is called, which was previously called, but this time I don't know why it suddenly doesn't work. I checked the information online. For versions earlier than PHP5.4.5, I only need to go to php. in ini, set com. all
The project needs to write a COM component with VC ++ for PHP to call, but the error message of PHP Fatal error: Class COM not found in appears when PHP is called, I used to call this method before, but I don't know why it suddenly doesn't work this time. I checked the information on the Internet. For versions earlier than PHP 5.4.5, I only need to go to php. in ini, set com. all
The project needs to write a COM component using VC ++ for PHP to call, but the PHP Fatal error occurs when PHP is called: the error message of Class 'com' not found in, which was previously called, but this time I don't know why it suddenly failed. I checked the information on the Internet, PHP versions earlier than 5.4.5, you only need. in ini, set com. allow_dcom = true. But after 5.4.5, PHP integrates the com/dotnet module into a separate extension. in ini, add extended extension = php_com_dotnet.dll by adding a line. If this line is not enabled, it is not included in the default configuration file. Then restart IIS or Apache and run it again!
Original article address: PHP5.4 solution to com component call failure, thanks to the original author for sharing.