RE: [PHP-WIN] COM objects win2000 PHP4.02

From: Date: Tue, 28 Aug 2001 19:45:31 +0000
Subject: RE: [PHP-WIN] COM objects win2000 PHP4.02
Groups: php.windows 
Request: Send a blank email to php-windows+get-9095@lists.php.net to get a copy of this message
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:abrown@pobox.com] 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" <Robert.Mize@COMPAQ.com> To: <php-windows@lists.php.net> 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: 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 > >

« previous php.windows (#9095) next »