Re: COM objects win2000 PHP4.02
| From: | Alain Samoun | Date: | Tue, 28 Aug 2001 18:51:12 +0000 |
| Subject: | Re: COM objects win2000 PHP4.02 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9094@lists.php.net to get a copy of this message | ||
Did you check:
http://www.php.net/manual/de/install.iis.php#install.iis.iis4
You seem to have a permission problem.
Don't forget that PHP code works on the server side, so you need to
have word enabled for your server.
Also check the win2k process list because for every time the script crashes
you have a winword.exe sitting there.
Alain
On Tue, Aug 28, 2001 at 12:29:42PM -0500, Mize, Robert wrote:
> I am having issues instantiating word or excel using COM.
>
> I get the error:
> Warning: Unable to obtain IDispatch interface for CLSID
> {000209FF-0000-0000-C000-000000000046}: Access is denied. in
> C:\Inetpub\wwwroot\website\excel\word.php on line 3
> Unable to instanciate Word
> Line 3 is:
> $word = new COM("word.application") or die("Unable to instantiate Word");
>
> I have changed permissions everywhere I can think of (office executables and
> web dirs), I have added com.allow_dcom = true to php.ini. I'm not sure
> what else to try.
>
> Anyone know what I am doing wrong?
>
> Thanks,
> rob.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net