PHP and Word via COM
| From: | William Lai | Date: | Fri, 03 Nov 2000 11:00:00 +0000 |
| Subject: | PHP and Word via COM | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3658@lists.php.net to get a copy of this message | ||
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