Click to See Complete Forum and Search --> : PHP and Word via COM


Anon
11-05-2000, 11:56 PM
Hello All,

I run a script that calls MS Word 2000 (new COM("Word.Appplication")) to
manipulate several word files. The script runs fine in my computer with PWS
and PHP 4.0.3pl1. However, when I put the script to our NT Server 4 (running
IIS4 and PHP 4.03pl1), the following error occurs:

Warning: Unable to obtain IDispatch interface for CLSID
{000209FF-0000-0000-C000-000000000046}: Server execution failed in
office.inc on line 80

Fatal error: Maximum execution time of 30 seconds exceeded in office.inc on
line 80

I think this is security problem so I add IUSR account to the local group
administrator. I also checked the "Allow Service to interact with desktop"
for the world wide web publishing service. The error still occurs.

Do anyone have solution for this problem?

William

Anon
11-07-2000, 07:06 AM
I'm only a starter in PHP, but it looks to me, as you need to install Word at the NT server to get it up and running.
(But do you really want that!?)

The CLSID is a code which refers to an Hive Link in the registry, i believe.

Good luck

Bart