Name

ODBC

Synopsis

The ODBC extension allows you to access databases that support ODBC. In addition, the extension supports connecting to several other databases that have adopted the semantics of ODBC.

To use ODBC, you must install the client libraries appropriate to the database you’re trying to access and compile PHP with one of the following directives:

  • --with-unixodbc[ =DIR ] for the Unix ODBC library

  • --with-openlink[ =DIR ] for OpenLink ODBC support

  • --with-dbmaker[ =DIR ] for DBMaker support

  • --with-adabas[ =DIR ] for Adabas D support

  • --with-sapdb[ =DIR ] for SAP DB support

  • --with-solid[ =DIR ] for Solid support

  • --with-ibm-db2[ =DIR ] for IBM DB2 support

  • --with-empress[ =DIR ] for Empress support

  • --with-velocis[ =DIR ] for Velocis support

  • --with-custom-odbc[ =DIR ] for custom ODBC-driver support

  • --with-iodbc[ =DIR ] for iODBC support

  • --with-esoob[ =DIR ] for Easysoft OOB support

Get Programming PHP, 2nd Edition 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.