PHP

HCL OneDB™ supports database access for client applications that are written in the PHP programming language by using a PDO (PHP Data Object) extension that functions as a database extraction layer. Two open source PDO extensions are available for HCL OneDB: the PDO for HCL OneDB and the PDO for Data Server clients.

PDO for HCL OneDB

The PDO extension for HCL OneDB is called PDO_INFORMIX. It works only with connections to HCL OneDB. You can download PDO_INFORMIX from the PHP Extension Community Library (PECL) website at http://pecl.php.net/package/PDO_INFORMIX.

To use PDO_INFORMIX, you must install the HCL® OneDB ODBC Driver, which is part of the HCL OneDB Client Software Development Kit (Client SDK).

Documentation to build and use PDO_INFORMIX is available from the php.net website:http://us2.php.net/manual/en/ref.pdo-informix.php.

PDO for Data Servers

The PDO extension for Data Servers is called PDO_IBM and is supported on HCL OneDB 11.10, or later. PDO_IBM can be used for connections to both HCL OneDB and DB2® data servers.

You can download PDO_IBM from the PHP Extension Community Library (PECL) website at http://pecl.php.net/package/PDO_IBM.

To use PDO_IBM, you must install the common CLI driver. The CLI driver is a component in the following clients and drivers:
  • HCL OneDB Client Software Development Kit (Client SDK)
  • .NET Core Provider Client
  • .NET Core Provider Runtime Client
  • .NET Core Provider Driver for ODBC, CLI, and .NET (Windows™ only)
  • .NET Core Provider Driver for ODBC and CLI

Documentation to build and use PDO_INFORMIX is available from php.net website: http://us2.php.net/manual/en/ref.pdo-ibm.php.