Services webmasters
Partenaires
Jeux concours gratuits
 
Is it possible to load/manipulate an ActiveX object in a page with PHP ?
<<<
Is it possible to get a running instance of a component ? Is there a way to handle an event sent from COM object ?
>>>

10.9 PHP and COM
10 FAQ : Foire Aux Questions
 Manuel PHP

I have built a DLL to calculate something. Is there any way to run this DLL under PHP ?
What does 'Unsupported variant type: xxxx (0xxxxx)' mean ?
Is it possible manipulate visual objects in PHP ?
Can I store a COM object in a session ?
How can I trap COM errors ?
Can I generate DLL files from PHP scripts like i can in Perl ?
What does 'Unable to obtain IDispatch interface for CLSID {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}' mean ?
How can I run COM object from remote server ?
I get 'DCOM is disabled in C:\path...\scriptname.php on line 6', what can I do ?
Is it possible to load/manipulate an ActiveX object in a page with PHP ?
-> Is it possible to get a running instance of a component ?
Is there a way to handle an event sent from COM object ?
I'm having problems when trying to invoke a method of a COM object which exposes more than one interface. What can I do ?
So PHP works with COM, how about COM+ ?
If PHP can manipulate COM objects, can we imagine to use MTS to manage components resources, in conjunction with PHP ?

10.9.11 Is it possible to get a running instance of a component ?

This is possible with the help of monikers. If you want to get multiple references to the same word instance you can create that instance like shown:


$word = new COM("C:\docs\word.doc");

This will create a new instance if there is no running instance available or it will return a handle to the running instance, if available.

<< Is it possible to get a running instance of a component ? >>
Is it possible to load/manipulate an ActiveX object in a page with PHP ? PHP and COM Is there a way to handle an event sent from COM object ?
Services webmasters
Les manuels
 
CoursPHP.com - Reproduction interdite -