PHP COM error
| From: | Herhuth, Ron | Date: | Tue, 12 Aug 2003 14:46:50 +0000 |
| Subject: | PHP COM error | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-21125@lists.php.net to get a copy of this message | ||
I am working on a simple COM script using PHP. I found a tutorial and I'm
simply trying to initiate a MS Word instance but I am getting this rather
interesting error:
-- CODE
$word = new COM("word.application") or die("Unable to instantiate Word");
-- ERROR
Warning: Invalid ProgID, GUID string, or Moniker: Invalid syntax in
D:\public\WordIndex\wordIndex2.php on line 12
Unable to instantiate Word
Can anyone shed some light on what might be the problem?
Thanks,
Ron