Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 703d980c580707c382b4e43e25965bc5 > files > 7646

php-manual-pt_BR-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>maxdb_options</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="MaxDB PHP Extension"
HREF="ref.maxdb.html"><LINK
REL="PREVIOUS"
TITLE="maxdb_num_rows"
HREF="function.maxdb-num-rows.html"><LINK
REL="NEXT"
TITLE="maxdb_param_count"
HREF="function.maxdb-param-count.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
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.maxdb-num-rows.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.maxdb-param-count.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.maxdb-options"
></A
>maxdb_options</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN107987"
></A
><P
>    (PECL)</P
>maxdb_options<P
>    (no version information, might be only in CVS)</P
>maxdb-&#62;options&nbsp;--&nbsp;Set options</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN107991"
></A
><H2
>Description</H2
><P
>Procedural style:</P
>bool <B
CLASS="methodname"
>maxdb_options</B
> ( resource link, int option, mixed value )<BR
></BR
><P
>Object oriented style (method)</P
>class <B
CLASS="classname"
>maxdb</B
> { <BR
></BR
>bool <B
CLASS="methodname"
>options</B
> ( int option, mixed value )<BR
></BR
>}<P
>&#13;   <B
CLASS="function"
>maxdb_options()</B
> can be used to set extra connect options
   and affect behavior for a connection.
  </P
><P
>&#13;   This function may be called multiple times to set several options.
  </P
><P
>&#13;   <B
CLASS="function"
>maxdb_options()</B
> should be called after <A
HREF="function.maxdb-init.html"
><B
CLASS="function"
>maxdb_init()</B
></A
>
   and before <A
HREF="function.maxdb-real-connect.html"
><B
CLASS="function"
>maxdb_real_connect()</B
></A
>.
  </P
><P
>&#13;   The parameter <CODE
CLASS="parameter"
>option</CODE
> is the option that you want to set,
   the <CODE
CLASS="parameter"
>value</CODE
> is the value for the option. For detailed
   description of the options see <A
HREF="http://dev.mysql.com/doc/maxdb/"
TARGET="_top"
>http://dev.mysql.com/doc/maxdb/</A
>
   The parameter <CODE
CLASS="parameter"
>option</CODE
> can be one of the following values:
   <DIV
CLASS="table"
><A
NAME="AEN108031"
></A
><P
><B
>Tabela 1. Valid options</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><THEAD
><TR
><TH
>Name</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
><TT
CLASS="constant"
><B
>MAXDB_COMPNAME</B
></TT
></TD
><TD
>The component name used to initialise the SQLDBC runtime environment.</TD
></TR
><TR
><TD
><TT
CLASS="constant"
><B
>MAXDB_APPLICATION</B
></TT
></TD
><TD
>The application to be connected to the database.</TD
></TR
><TR
><TD
><TT
CLASS="constant"
><B
>MAXDB_APPVERSION</B
></TT
></TD
><TD
>The version of the application.</TD
></TR
><TR
><TD
><TT
CLASS="constant"
><B
>MAXDB_SQLMODE</B
></TT
></TD
><TD
>&#13;        The SQL mode.
       </TD
></TR
><TR
><TD
><TT
CLASS="constant"
><B
>MAXDB_UNICODE</B
></TT
></TD
><TD
>&#13;         TRUE, if the connection is an unicode (UCS2) client or FALSE, if not.
       </TD
></TR
><TR
><TD
><TT
CLASS="constant"
><B
>MAXDB_TIMEOUT</B
></TT
></TD
><TD
>&#13;         The maximum allowed time of inactivity after which the connection to the
         database is closed by the system.
       </TD
></TR
><TR
><TD
><TT
CLASS="constant"
><B
>MAXDB_ISOLATIONLEVEL</B
></TT
></TD
><TD
>&#13;         Specifies whether and how shared locks and exclusive locks are implicitly
         requested or released.
       </TD
></TR
><TR
><TD
><TT
CLASS="constant"
><B
>MAXDB_PACKETCOUNT</B
></TT
></TD
><TD
>&#13;         The number of different request packets used for the connection.
       </TD
></TR
><TR
><TD
><TT
CLASS="constant"
><B
>MAXDB_STATEMENTCACHESIZE</B
></TT
></TD
><TD
>&#13;         The number of prepared statements to be cached for the connection for re-use.
       </TD
></TR
><TR
><TD
><TT
CLASS="constant"
><B
>MAXDB_CURSORPREFIX</B
></TT
></TD
><TD
>&#13;         The prefix to use for result tables that are automatically named.
       </TD
></TR
></TBODY
></TABLE
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN108079"
></A
><H2
>Valores de retornado</H2
><P
>&#13;   Retorna <TT
CLASS="constant"
><B
>TRUE</B
></TT
> em caso de sucesso ou <TT
CLASS="constant"
><B
>FALSE</B
></TT
> em falhas.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN108084"
></A
><H2
>Veja também</H2
><P
>&#13;   <A
HREF="function.maxdb-init.html"
><B
CLASS="function"
>maxdb_init()</B
></A
>,
   <A
HREF="function.maxdb-real-connect.html"
><B
CLASS="function"
>maxdb_real_connect()</B
></A
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN108089"
></A
><H2
>Example</H2
><P
>See <A
HREF="function.maxdb-real-connect.html"
><B
CLASS="function"
>maxdb_real_connect()</B
></A
>.</P
></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.maxdb-num-rows.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="function.maxdb-param-count.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>maxdb_num_rows</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.maxdb.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>maxdb_param_count</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>