These functions enable you to access IBM DB2 Universal Database, IBM
Cloudscape, and Apache Derby databases using the DB2 Call Level Interface
(DB2 CLI).
To connect to IBM DB2 Universal Database for Linux, UNIX, and Windows, or
IBM Cloudscape, or Apache Derby, you must install an IBM DB2 Universal
Database client on the same computer on which you are running PHP. The
extension has been developed and tested with DB2 Version 8.2.
To connect to IBM DB2 Universal Database for z/OS or iSeries, you also
require IBM DB2 Connect or the equivalent DRDA gateway software.
On Linux or Unix operating systems, ensure that the user invoking the
PHP executable or SAPI has sourced the DB2 instance environment before
accessing these functions. If you created a DB2 instance in
/home/db2inst1/, for example, you must issue the
following command to modify your environment variables to enable access to
DB2:
bash$ source /home/db2inst1/sqllib/db2profile
To enable your PHP-enabled Web server to access these functions, you must
add the same command to your Web server start script (typically
/etc/init.d/httpd or
/etc/init.d/apache).
To build the ibm_db2 extension, the DB2 application development header
files and libraries must be installed on your system. DB2 does not install
these by default, so you may have to return to your DB2 installer and add
this option.
If you add the DB2 application development header files and libraries to
a Linux or Unix operating system on which DB2 was already installed, you
must issue the command db2iupdt -e to update the symbolic
links to the header files and libraries in your DB2 instances.
ibm_db2 is a PECL extension, so follow the
instructions in Chapter 7 to install the ibm_db2
extension for PHP. Issue the configure command to point
to the location of your DB2 header files and libraries as follows:
bash$ ./configure --with-IBM_DB2=/path/to/DB2
The configure command defaults to
/opt/IBM/db2/V8.1.
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
Specifies a scrollable cursor for a statement resource. This mode enables
random access to rows in a result set, but currently is supported only by
IBM DB2 Universal Database.
Všetky ceny sú s 20% DPH. Konverzny kurz: 1 EUR = 30,1260 SKK
Ceny nezahŕňajú ročný udržiavací poplatok za doménu, ktorý platíme jednotlivým správcom domén.