<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/uodbc.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'odbc.configuration.php',
    1 => '运行时配置',
    2 => '运行时配置',
  ),
  'up' => 
  array (
    0 => 'uodbc.setup.php',
    1 => '安装/配置',
  ),
  'prev' => 
  array (
    0 => 'odbc.installation.php',
    1 => '安装',
  ),
  'next' => 
  array (
    0 => 'uodbc.resources.php',
    1 => '资源类型',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uodbc/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="odbc.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Unified ODBC Configuration Options</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="odbc.configuration.php#ini.uodbc.allow-persistent" class="link">odbc.allow_persistent</a></td>
      <td>&quot;1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="odbc.configuration.php#ini.uodbc.check-persistent" class="link">odbc.check_persistent</a></td>
      <td>&quot;1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="odbc.configuration.php#ini.uodbc.max-persistent" class="link">odbc.max_persistent</a></td>
      <td>&quot;-1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="odbc.configuration.php#ini.uodbc.max-links" class="link">odbc.max_links</a></td>
      <td>&quot;-1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="odbc.configuration.php#ini.uodbc.defaultlrl" class="link">odbc.defaultlrl</a></td>
      <td>&quot;4096&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="odbc.configuration.php#ini.uodbc.defaultbinmode" class="link">odbc.defaultbinmode</a></td>
      <td>&quot;1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="odbc.configuration.php#ini.uodbc.defaultcursortype" class="link">odbc.default_cursortype</a></td>
      <td>&quot;3&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

  有关 INI_* 样式的更多详情与定义，见 <a href="configuration.changes.modes.php" class="xref">配置可被设定范围</a>。
 </p>
 
 <p class="para">这是配置指令的简短说明。</p>
 
 <p class="para">
 <dl>
   
   <dt id="ini.uodbc.default-db">
    <code class="parameter">odbc.default_db</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <p class="para">
     ODBC data source to use if none is specified in
     <span class="function"><a href="function.odbc-connect.php" class="function">odbc_connect()</a></span> or
     <span class="function"><a href="function.odbc-pconnect.php" class="function">odbc_pconnect()</a></span>.
    </p>
   </dd>
  
  
  
   <dt id="ini.uodbc.default-user">
    <code class="parameter">odbc.default_user</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <p class="para">
     User name to use if none is specified in
     <span class="function"><a href="function.odbc-connect.php" class="function">odbc_connect()</a></span> or
     <span class="function"><a href="function.odbc-pconnect.php" class="function">odbc_pconnect()</a></span>.
    </p>
   </dd>
  
  
  
   <dt id="ini.uodbc.default-pw">
    <code class="parameter">odbc.default_pw</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <p class="para">
     Password to use if none is specified in
     <span class="function"><a href="function.odbc-connect.php" class="function">odbc_connect()</a></span> or
     <span class="function"><a href="function.odbc-pconnect.php" class="function">odbc_pconnect()</a></span>.
    </p>
   </dd>
  
  
  
   <dt id="ini.uodbc.allow-persistent">
    <code class="parameter">odbc.allow_persistent</code>
    <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
   </dt>
   <dd>
    <p class="para">
     Whether to allow persistent ODBC connections.
    </p>
   </dd>
  
  
  
   <dt id="ini.uodbc.check-persistent">
    <code class="parameter">odbc.check_persistent</code>
    <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
   </dt>
   <dd>
    <p class="para">
     Check that a connection is still valid before reuse.
    </p>
   </dd>
  
  
  
   <dt id="ini.uodbc.max-persistent">
    <code class="parameter">odbc.max_persistent</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     The maximum number of persistent ODBC connections per process.
    </p>
   </dd>
  
  
  
   <dt id="ini.uodbc.max-links">
    <code class="parameter">odbc.max_links</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     The maximum number of ODBC connections per process, including
     persistent connections.
    </p>
   </dd>
  
   
   <dt id="ini.uodbc.defaultlrl">
    <code class="parameter">odbc.defaultlrl</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     Handling of LONG fields. Specifies the number of bytes returned to
     variables.
     See <span class="function"><a href="function.odbc-longreadlen.php" class="function">odbc_longreadlen()</a></span> for details.
    </p>

    <span class="simpara">当使用 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
时, 其值以字节来衡量。还可以使用在 <a href="faq.using.php#faq.using.shorthandbytes" class="link">FAQ</a> 中描述的速记符。</span>

   </dd>
  
  
  
   <dt id="ini.uodbc.defaultbinmode">
    <code class="parameter">odbc.defaultbinmode</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     Handling of binary data.
     See <span class="function"><a href="function.odbc-binmode.php" class="function">odbc_binmode()</a></span> for details.
    </p>
   </dd>
  

  
   <dt id="ini.uodbc.defaultcursortype">
    <code class="parameter">odbc.default_cursortype</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     Controls the ODBC cursor model.
     Possible values are <strong><code><a href="uodbc.constants.php#constant.sql-cursor-forward-only">SQL_CURSOR_FORWARD_ONLY</a></code></strong>,
     <strong><code><a href="uodbc.constants.php#constant.sql-cursor-keyset-driven">SQL_CURSOR_KEYSET_DRIVEN</a></code></strong>,
     <strong><code><a href="uodbc.constants.php#constant.sql-cursor-dynamic">SQL_CURSOR_DYNAMIC</a></code></strong> and
     <strong><code><a href="uodbc.constants.php#constant.sql-cursor-static">SQL_CURSOR_STATIC</a></code></strong> (default).
    </p>
   </dd>
  
  
 </dl>
 </p>
</div><?php manual_footer($setup); ?>