PHP4 already supports Microsoft's COM technology. However, the COM section is rarely mentioned in this document. Here are some examples I have tried. I hope these will give you some ideas. Note that these can only run on 32-bit Microsoft Windows platforms. Activating ADOADO with php is Microsoft's database object technology. ADSyntaxHi
PHP4 already supports Microsoft's COM technology. However, the COM section is rarely mentioned in this document. Here are some examples I have tried. I hope these will give you some ideas. Note that these can only run on a 32-bit Microsoft Windows platform. Activating ADO with php is Microsoft's database object technology. ADO contains the objects that connect to the database, the record set objects that return data from the query statement, and the field objects that represent data elements. Many databases do not directly support ADO. Instead, many databases support two levels of Microsoft Database Technology: ODBC and OLEDB. many databases support ODBC, but OLEDB has a reputation for being faster than ODBC. ADO is the API for packaging ODBC and OLEDB. in this example, open a new ADO Connection object, open a traditional ACCESS database for ODBC, and then execute the SQL query, a record set object will be returned. Then we will display the first three fields of the record set. Provider = "MSDASQL"; $ dbc-> Open ("nwind"); $ rs = $ dbc-> Execute ("select * from products"); $ I = 0; while (! $ Rs-> EOF) {$ I + = 1; $ fld0 = $ rs-> Fields [0]; $ fld1 = $ rs-> Fields [1]; $ fld2 = $ rs-> Fields [2]; print "$ fld0-> value $ fld1-> value $ fld2-> value
"; $ Rs-> MoveNext () ;}$ rs-> Close ();?> Using PHP to call Microsoft Word is another example: Version) "; $ word-> visible = 1; $ word-> Documents-> Add (); $ word-> Selection-> Typetext ("This is a test");?>