PHP5.4 solution to com component call failure

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.