Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Im having problems getting my PHP to work with COM on a win2003 server,
ive got the same code running on a winxp box with no problems.

   $excel = new COM("excel.application") or die("Unable to instanciate

Excel is installed, if i try and run this line then i get the message :

'Failed to create COM object `excel.application': Access is denied

Tried various other COM objects like word but get the same message so
its not unique to excel.

I dont know why access is denied or what i can do to solve it. COM is
enabled in the php.ini page,  

Thanks for any help.


Re: PHP and COM wrote:
Quoted text here. Click to load it

It looks like the web server user doesn't have permissions to create the  
COM object.  You might want to check one of the Windows admin newsgroups  
to see exactly what permissions you need to set.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline