After changing the permissions using dcomcnfg.exe, it is working. I never
knew that existed.. Thanks Alan! Also thanks to everyone else who had
suggestions.

rob. 

-----Original Message-----
From: Alan Brown [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 2:19 PM
To: Mize, Robert
Subject: Re: [PHP-WIN] COM objects win2000 PHP4.02


Probably the user account that the web site is running under (looks like
IIS, so IUSR_<MACHINENAME>) does not have permission to instantaite the word
component. What are the permissions on the directory containing winword.exe
and on the exectuable itself? It could be instatitation permsisions (which
are stored in the registry - see dcomcnfg.exe) or on the exectuable.

Alan.
----- Original Message -----
From: "Mize, Robert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 13:29
Subject: [PHP-WIN] COM objects win2000 PHP4.02


> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to