11<?xml version =" 1.0" encoding =" utf-8" ?>
22<reference xml : id =" ref.pdo-ibm" xmlns =" http://docbook.org/ns/docbook" >
33 <?phpdoc extension-membership =" pecl" ?>
4- <title >IBM Functions (PDO_IBM)</title >
5- <titleabbrev >IBM ( PDO) </titleabbrev >
4+ <title >IBM PDO Driver (PDO_IBM)</title >
5+ <titleabbrev >IBM PDO Driver </titleabbrev >
66 <partintro >
77
88 <section xml : id =" pdo-ibm.intro" >
2929 <refsect1 role =" description" >
3030 &reftitle.description;
3131 <para >
32- The PDO_IBM Data Source Name (DSN) is based on the IBM CLI DSN. The major
33- components of the PDO_IBM DSN are:
32+ The PDO_IBM Data Source Name (DSN) is based on the IBM CLI DSN. The major
33+ components of the PDO_IBM DSN are:
3434 <variablelist >
3535 <varlistentry >
3636 <term >DSN prefix</term >
4848 <itemizedlist >
4949 <listitem >
5050 <para >
51- a) Data source setup using <filename >db2cli.ini</filename >
51+ a) Data source setup using <filename >db2cli.ini</filename >
5252 or <filename >odbc.ini</filename >
5353 </para >
5454 </listitem >
5555 <listitem >
5656 <para >
57- b) Catalogued database name i.e. database alias in the DB2 client
57+ b) Catalogued database name i.e. database alias in the DB2 client
5858 catalog
5959 </para >
6060 </listitem >
6161 <listitem >
6262 <para >
63- c) Complete connection string in the following format:
64- <code >DRIVER={IBM DB2 ODBC DRIVER};DATABASE=<parameter >database</parameter >;HOSTNAME=<parameter >hostname</parameter >;PORT=<parameter >port</parameter >;PROTOCOL=TCPIP;UID=<parameter >username</parameter >;PWD=<parameter >password</parameter >;</code >
63+ c) Complete connection string in the following format:
64+ <code >DRIVER={IBM DB2 ODBC DRIVER};DATABASE=<parameter >database</parameter >;HOSTNAME=<parameter >hostname</parameter >;PORT=<parameter >port</parameter >;PROTOCOL=TCPIP;UID=<parameter >username</parameter >;PWD=<parameter >password</parameter >;</code >
6565 where the parameters represent the following values:
6666 <variablelist >
6767 <varlistentry >
122122 <example >
123123 <title >PDO_IBM DSN example using <filename >db2cli.ini</filename ></title >
124124 <para >
125- The following example shows a PDO_IBM DSN for connecting to an DB2
125+ The following example shows a PDO_IBM DSN for connecting to an DB2
126126 database cataloged as DB2_9 in <filename >db2cli.ini</filename >:
127127 <programlisting ><![CDATA[
128128$db = new PDO("ibm:DSN=DB2_9", "", "");
@@ -138,17 +138,17 @@ Servicename=56789
138138 <example >
139139 <title >PDO_IBM DSN example using a connection string</title >
140140 <para >
141- The following example shows a PDO_IBM DSN for connecting to an DB2
142- database named <userinput >testdb</userinput > using the DB2 CLI
143- connection string syntax.
141+ The following example shows a PDO_IBM DSN for connecting to an DB2
142+ database named <userinput >testdb</userinput > using the DB2 CLI
143+ connection string syntax.
144144 <programlisting ><![CDATA[
145145$db = new PDO("ibm:DRIVER={IBM DB2 ODBC DRIVER};DATABASE=testdb;" .
146146 "HOSTNAME=11.22.33.444;PORT=56789;PROTOCOL=TCPIP;", "testuser", "tespass");
147147]]>
148148 </programlisting >
149149 </para >
150150 </example >
151-
151+
152152 </para >
153153 </refsect1 >
154154 </refentry >
0 commit comments