PHP and COM

PHP also provide the way connect to Component Object Model (COM) that is used wildly on MSWindow platform. The following code will show you how to connect to database via COM. You can check for the built-in function provided by php at the below url:

You will notice that the open() function is belong to ADODB.Connection object provide by Microsoft. That means the $conn variable is able to access any function in ADODB.Connection. Also, the $recordset variable is able to access any function in ADODB.RecordSet.