Windows platform PHP error Fatal Error:class COM not found in solution _win server

Source: Internet
Author: User
Tags php error

IIS running up on Win Server 08 has a lot of performance improvement, but it still feels uncomfortable ...

One day while debugging a PHP production environment on win, a section of PHP code returned an error:

Fatal error:class ' COM ' not found in xxxxxxxxx

Did not find COM class, PHP code is mainly to call some system information, first thought should be PHP is not configured, in StackOverflow find the answer, is to discuss the XAMPP, to extend, I added a few points:

★php the root directory of the Ext folder to ensure the existence of Php_com_dotnet.dll this file

★php.ini Make sure that you have this statement

Copy Code code as follows:

[Php_com_dotnet]
Extension=php_com_dotnet.dll

★ Start > Run > Services.msc carriage return > Ensure that COM + Event System services are turned on

Before PHP version 5.4.5 was built, but later versions were separated ...

Reprinted from the ice Cream pig ' s Blog

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.