com_load_typelib
(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)
com_load_typelib — Loads a Typelib
Description
Loads a type-library and registers its constants in the engine, as though they were defined using define().
Note that it is much more efficient to use the com.typelib-file php.ini setting to pre-load and register the constants, although not so flexible.
If com.autoregister-typelib is turned on, then PHP will attempt to automatically register the constants associated with a COM object when you instantiate it. This depends on the interfaces provided by the COM object itself, and may not always be possible.
Parameters
typelibtypelibcan be one of the following:The filename of a
.tlbfile or the executable module that contains the type library.The type library GUID, followed by its version number, for example
{00000200-0000-0010-8000-00AA006D2EA4},2,0.The type library name, e.g.
Microsoft OLE DB ActiveX Data Objects 1.0 Library.
case_insensitiveThe
case_insensitivebehaves inversely to the parameter$case_insensitivein the define() function.