<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >IBM Functions (PDO_IBM)</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Manual do PHP" HREF="index.html"><LINK REL="UP" TITLE="Referência das Funções" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="locale_set_default" HREF="function.locale-set-default.html"><LINK REL="NEXT" TITLE="PDO_IBM DSN" HREF="ref.pdo-ibm.connection.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.locale-set-default.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="ref.pdo-ibm.connection.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.pdo-ibm" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >LIX. IBM Functions (PDO_IBM)</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN74796" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="pdo-ibm.intro" >Introdução</A ></H1 ><P > PDO_IBM is a driver that implements the <A HREF="ref.pdo.html" >PHP Data Objects (PDO)</A > interface to enable access from PHP to IBM databases. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="ref.pdo-ibm.installation" >Instalação</A ></H1 ><P > 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" TARGET="_top" >Application Development Site</A >. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > The DB2 Client v9.1 or later supports direct access to DB2 for Linux, UNIX, and Windows v8 and v9.1 servers. </P ><P > 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" TARGET="_top" >DB2 Connect product</A >. </P ></BLOCKQUOTE ></DIV ><P > PDO_IBM is a <A HREF="http://pecl.php.net" TARGET="_top" >PECL</A > extension, so follow the instructions in <A HREF="install.pecl.html" >Capítulo 7</A > to install the PDO_IBM extension. Issue the <B CLASS="command" >configure</B > command to point to the location of your DB2 Client header files and libraries as follows: <TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="screen" >bash$ ./configure --with-pdo-ibm=/path/to/sqllib[,shared]</PRE ></TD ></TR ></TABLE > The <B CLASS="command" >configure</B > command defaults to the value of the <TT CLASS="literal" >DB2DIR</TT > environment variable. </P ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Índice</B ></DT ><DT ><A HREF="ref.pdo-ibm.connection.html" >PDO_IBM DSN</A > -- Connecting to IBM databases</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.locale-set-default.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="ref.pdo-ibm.connection.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >locale_set_default</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >PDO_IBM DSN</TD ></TR ></TABLE ></DIV ></BODY ></HTML >