Using COM with PHP

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
Delphin
Forum Newbie
Posts: 2
Joined: Thu May 20, 2004 7:05 am

Using COM with PHP

Post by Delphin »

I'm trying to use COM components in PHP script. I set the values in php.ini [com] section, added in dcomcnfg on server IUSR_MYHOSTNAME user to allow launch and access this COM(COM is on server), but when creating using new COM('My.Component') I receive

Unable to obtain IDispatch interface for CLSID {xx-xxxx...}: Server execution failed .

Maybe someone can help me ?

I'm using IIS6 + PHP4
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the component you have sounds like it's not returning an IDispatch interface when asked to. Probably returning IUnknown or worse, nothing.
Delphin
Forum Newbie
Posts: 2
Joined: Thu May 20, 2004 7:05 am

Post by Delphin »

No, it's ok with IDispatch. I'm trying to use word.application and excel.application and the practically same code is working in Visual basic 6 with no problem.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hmm.. it's been a while since I've used DCOM stuffs..
Post Reply