The com classIntroductionThe com class allows you to instantiate an OLE compatible COM object and call its methods and access its properties. Class synopsis
com
extends
variant
/* Methods */
public com::__construct(
string $module_name ,arraystringnull $server_name = null ,int $codepage = CP_ACP ,string $typelib = "") Overloaded MethodsThe returned object is an overloaded object, which means that PHP does not see any fixed methods as it does with regular classes; instead, any property or method accesses are passed through to COM. PHP will automatically detect methods that accept parameters by reference, and will automatically convert regular PHP variables to a form that can be passed by reference. This means that you can call the method very naturally; you needn't go to any extra effort in your code. com examples
Example #1 com example (1)
Example #2 com example (2)
|