Source of: /manual/en/ref.pdo-ibm.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/pdo.drivers.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'ref.pdo-ibm.php',
1 => 'IBM (PDO)',
),
'up' =>
array (
0 => 'pdo.drivers.php',
1 => 'PDO Drivers',
),
'prev' =>
array (
0 => 'ref.pdo-firebird.connection.php',
1 => 'PDO_FIREBIRD DSN',
),
'next' =>
array (
0 => 'ref.pdo-ibm.connection.php',
1 => 'PDO_IBM DSN',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div>
<h1 class="title">IBM Functions (PDO_IBM)</h1>
<div class="partintro">
<div id="pdo-ibm.intro" class="section">
<h2 class="title">Introduction</h2>
<p class="para">
PDO_IBM is a driver that implements the <a href="intro.pdo.php" class="link">PHP Data
Objects (PDO)</a> interface to enable access from PHP to IBM databases.
</p>
</div>
<div id="ref.pdo-ibm.installation" class="section">
<h2 class="title">Installation</h2>
<p class="para">
To build the PDO_IBM extension, the DB2 Client v9.1 or later must be
installed on the same system as PHP. The DB2 Client can be downloaded
from the IBM <a href="http://www.ibm.com/software/data/db2/ad" class="link external">» Application Development
Site</a>.
</p>
<blockquote><p><b class="note">Note</b>:
<b>Note</b><br />
The DB2 Client v9.1 or later supports direct access to DB2 for Linux,
UNIX, and Windows v8 and v9.1 servers.
<br />
The DB2 Client v9.1 also supports access to DB2 UDB for i5 and DB2 UDB
for z/OS servers using the separately purchased <a href="http://www.ibm.com/software/data/db2/db2connect" class="link external">» DB2
Connect product</a>.
<br />
</p></blockquote>
<p class="para">
PDO_IBM is a <a href="http://pecl.php.net/" class="link external">» PECL</a> extension, so follow the
instructions in <a href="install.pecl.php" class="xref">Installation of PECL extensions</a> to install the PDO_IBM
extension. Issue the <strong class="command">configure</strong> command to point to the
location of your DB2 Client header files and libraries as follows:
<div class="example-contents screen">
<div class="cdata"><pre>
bash$ ./configure --with-pdo-ibm=/path/to/sqllib[,shared]
</pre></div>
</div>
The <strong class="command">configure</strong> command defaults to the value of the
<i>DB2DIR</i> environment variable.
</p>
</div>
</div>
<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="ref.pdo-ibm.connection.php">PDO_IBM DSN</a> — Connecting to IBM databases</li></ul>
</div>
<?php manual_footer(); ?>