Posted by Jerry Stuckle on 09/22/06 22:53
paulroskilly@hotmail.com wrote:
> Hi,
>
> 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");
>
> 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.
>
> Paul
>
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.
jstucklex@attglobal.net
==================
[Back to original message]
|