COM is a technology which allows the reuse of code written in any language (by any language) using a standard calling convention and hiding behind APIs the implementation details such as what machine the Component is stored on and the executable which houses it. It can be thought of as a super Remote Procedure Call (RPC) mechanism with some basic object roots. It separates implementation from interface.
COM encourages versioning, separation of implementation from interface and hiding the implementation details such as executable location and the language it was written in.
Er zijn geen handelingen nodig m.b.t. tot installatie voor deze functies, omdat ze deel uitmaken van de kern van PHP.
The windows version of PHP has built in support for this extension. You do not need to load any additional extension in order to use these functions.
Het gedrag van deze functies kan worden beď vanuit php.ini.
Tabel 1. Com configuratie opties
| Naam | Standaard waarde | Veranderbaar |
|---|---|---|
| com.allow_dcom | "0" | PHP_INI_SYSTEM |
| com.autoregister_typelib | "0" | PHP_INI_SYSTEM |
| com.autoregister_verbose | "0" | PHP_INI_SYSTEM |
| com.autoregister_casesensitive | "1" | PHP_INI_SYSTEM |
| com.typelib_file | "" | PHP_INI_SYSTEM |
Deze constanten worden gedefineerd door deze extensie, en zullen alleen beschikbaar zijn als de extensie met PHP is meegecompileerd, of als deze dynamisch is geladen vanuit een script.
Voor meer informatie over COM lees COM specification of neem een kijkje in Don Box's Yet Another COM Library (YACL)