PHPWORDCOM component problems

Source: Internet
Author: User
For PHPWORDCOM component problems, we need to use php to operate the word. The system is not configured, and the configuration is as follows:
1. the php ext folder contains the php_com_dotnet.dll file;
2. com. allow_dcom = true and extension = php_com_dotnet.dll are added to php. ini.
3. the com in the management device is also enabled. However, when I enter such a test program:

$ Word = new COM ("word. application") or die ("Unable to instantiate Word ");
Echo "Loaded Word, version {$ word-> Version} \ n ";

?>
The following error occurs:
! ) Fatal error: Class 'com' not found in D: \ wamp \ www \ test \ word. php on line 3
Call Stack
# Time Memory Function Location
1 0.0000 141624 {main} () .. \ word. php: 0
I would like to ask why?


Reply to discussion (solution)

In another way, please refer to this blog for details! Well written! Http://blog.csdn.net/pqhdp/article/details/5626758

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.