Page 1 of 1

Help!!!! PHP and COM

Posted: Mon Jul 14, 2003 11:23 pm
by doodle
Please help me!!!

I tried using COM in my PHP pages. I tested to call Word program from PHP references. A warning appearing as following:

Warning: (null)(): Unable to obtain IDispatch interface for CLSID {000209FF-0000-0000-C000-000000000046}: visit refused. in F:\Web\PHP_Extensions\COM_Word.php on line 3
Unable to instanciate Word

I developed a simple DLL using VB and it worked. But some days later it stopped working. Similiar warning appeared as following:

Warning: (null)(): Unable to obtain IDispatch interface for CLSID {F65C23C1-BC04-474C-A7CC-E5D31DC12F66}: visit refued. in F:\Web\PHP_Extensions\COM_YJW.php on line 5
Unable to instanciate TestDll Plus

Actually now I can call functions from TestDll Plus in VB and Word. Than means the DLL and Work work well. In addition, Some other DLL I developed are working well.

Could some people tell me what the reasons are and How I can debug them???

Thanks in advance.

Posted: Tue Jul 15, 2003 6:40 am
by twigletmac
Have you got all the service packs installed for Office? I know there are some problems with accessing COM using PHP without these.

Mac

Thanks

Posted: Tue Jul 15, 2003 12:09 pm
by doodle
Thanks, Mac:

I don't know the which model of the Office software should be installed. Do you know the reason that the DLL I developed for testing which worked before now stopped working???? I didn't change anything.

Thanks again.

doodle

Posted: Tue Jul 15, 2003 1:46 pm
by Stoker
Visual Basic does not make real DLL's, the runtime libs need to be in place (at least up to version 6).. Not sure if understand the need of doing word functions from a php script tho..

word

Posted: Mon Feb 16, 2004 12:51 pm
by Burrito
I found a way to invoke a word instance using com to dynamically create word documents. But I'm struggling with being able to keep the instance of Word open on the server so that it doesn't require the server to invoke a new instance every time I try to generate a document.

Wondering if you ever found a solution to this. I'm more than happy to provide what I've got for you.

If you did ever find a solution to this, were you able to keep the instance of Word open?

thx,

Burr

Posted: Mon Feb 16, 2004 12:54 pm
by malcolmboston
thats 3 posts youve revived......... :?

people seen the first post

word

Posted: Mon Feb 16, 2004 12:56 pm
by Burrito
indeed it is. However, I'm hoping that these last two will get emailed to the participants (in case they don't check these forums every day) and provide a solution since you could not.

thx,

Burr

Posted: Mon Feb 16, 2004 3:52 pm
by ol4pr0
If they wont check the forum everydays. there is always the @mail me when a reply has been submitted or something like that.....

If a post is that importent i think they will look it up / or have the @mail me enabled ;-)