com_load

int com_load(string component) 
component Name of component to load

Loads and initializes a COM object.

Returns:

COM resource identifier, FALSE on failure

Description:

Loads and initializes a COM object. Returns an identifier that’s used in other COM functions. To load a COM object, it must first be registered using regsvr32.exe on Microsoft Windows platforms. If you’re using a preexisting or commercial COM object, this is usually done automatically. In ASP, the code in the following example would be written as follows:

set com = Server.CreateObject("ObjectName.ClassName") 

Version:

Existing since version 3.0.3

Example:

Load a COM object
$com = com_load("ObjectName.ClassName"); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.