Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 2343

php-manual-zh-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="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"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.maxdb-num-rows.html"
ACCESSKEY="P"
>上一页</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"
>下一页</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="AEN111787"
></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="AEN111791"
></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="AEN111831"
></A
><P
><B
>表 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="AEN111879"
></A
><H2
>返回值</H2
><P
>&#13;   如果成功则返回 <TT
CLASS="constant"
><B
>TRUE</B
></TT
>,失败则返回 <TT
CLASS="constant"
><B
>FALSE</B
></TT
>。
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN111884"
></A
><H2
>参见</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="AEN111889"
></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"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.maxdb-param-count.html"
ACCESSKEY="N"
>下一页</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"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>maxdb_param_count</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>