Page 1 of 1

How to use COM class?

Posted: Sat Jan 09, 2010 12:19 pm
by mark377
I am trying to find information on how to get the COM class upa nd running on my server, currently trying to run a DLL with $var = new COM(); gives me an error. Can anyone point me in the right direction to install and configure this class, in a standard LAMP config?

Thanks

Re: How to use COM class?

Posted: Sat Jan 09, 2010 12:50 pm
by AbraCadaver
Well you can't on a LAMP config because COM is only available on Windows. Assuming that you can get a WAMP server, then you would need to register the dll with regsrv32 and then use the module_name in the new COM() call. Can be a ProgID, Class ID or Moniker that names the component to load. A ProgID is typically the application or DLL name, followed by a period, followed by the object name. e.g: Word.Application. A Class ID is the UUID that uniquely identifies a given class.

http://us3.php.net/manual/en/class.com.php