How to use COM class?

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
mark377
Forum Newbie
Posts: 1
Joined: Sat Jan 09, 2010 12:15 pm

How to use COM class?

Post 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
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: How to use COM class?

Post 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
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply