new COM(): Access is denied.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jadair
Forum Newbie
Posts: 9
Joined: Mon Sep 02, 2002 10:01 pm
Location: Sterling Heights, MI

new COM(): Access is denied.

Post by jadair »

I get an Access is denied error when trying to instantiate Excel. The actual error reads - Unable to obtain IDispatch interface for CLSID {00020820-0000-...}: Access is denied after the following code:

$this->ex = new COM("Excel.Sheet") or Die ("Did not instantiate Excel");

Apache then crashes and claims to post into the error log. Although I can not find any such entry into the any log. Also, Apache keeps running and I never have to restart it. Maybe this is how it's suppose to work; I don't know.

I'm running Apache 1.3.26 & PHP/4.2.2.

The error message only comes up when I'm using the ZDE debugger as a Debug Warning.

Any help would be appreciated.
Post Reply