Windows Platform's PHP open COM configuration

Source: Internet
Author: User

PHP for Windows platform If COM is not configured, the COM component is called with the following error

Fatal error:class ' COM ' not found in xxxxxxxxx

The PHP root directory of the Ext folder ensures that php_com_dotnet.dll this file exists

One, edit php.ini, open com.allow_dcom

1. If PHP version >5.3.15 needs to ensure that the Php_com_dotnet.dll file is stored in the Ext folder of the PHP root directory, add it in php.ini

[Php_com_dotnet]extension=php_com_dotnet.dll

2. Remove com.allow_dcom = true before the '; ' Number, set to:

Com.allow_dcom = True

  

Second, ensure that the COM + Event System service is turned on

Open the service (Win key +r) or Start > Run > Services.msc enter > Ensure that the COM + Event System service is turned on

Windows Platform's PHP open COM configuration

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.