<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ibm-db2.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.db2-client-info.php',
    1 => 'db2_client_info',
    2 => 'Returns an object with properties that describe the DB2 database client',
  ),
  'up' => 
  array (
    0 => 'ref.ibm-db2.php',
    1 => 'IBM DB2 İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.db2-bind-param.php',
    1 => 'db2_bind_param',
  ),
  'next' => 
  array (
    0 => 'function.db2-close.php',
    1 => 'db2_close',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ibm_db2/functions/db2-client-info.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.db2-client-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">db2_client_info</h1>
  <p class="verinfo">(PECL ibm_db2 &gt;= 1.1.1)</p><p class="refpurpose"><span class="refname">db2_client_info</span> &mdash; <span class="dc-title">Returns an object with properties that describe the DB2 database client</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.db2-client-info-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>db2_client_info</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$connection</code></span>): <span class="type"><span class="type"><a href="class.stdclass.php" class="type stdClass">stdClass</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>


  <p class="para rdfs-comment">
   This function returns an object with read-only properties that return
   information about the DB2 database client. The following table lists
   the DB2 client properties:
   <table class="doctable table">
    <caption><strong>DB2 client properties</strong></caption>
    
     <thead>
      <tr>
       <th>Property name</th>
       <th>Return type</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>APPL_CODEPAGE</td>
       <td>int</td>
       <td>The application code page.</td>
      </tr>

      <tr>
       <td>CONN_CODEPAGE</td>
       <td>int</td>
       <td>The code page for the current connection.</td>
      </tr>

      <tr>
       <td>DATA_SOURCE_NAME</td>
       <td>string</td>
       <td>The data source name (DSN) used to create the current connection
        to the database.</td>
      </tr>

      <tr>
       <td>DRIVER_NAME</td>
       <td>string</td>
       <td>The name of the library that implements the DB2 Call
        Level Interface (CLI) specification.</td>
      </tr>

      <tr>
       <td>DRIVER_ODBC_VER</td>
       <td>string</td>
       <td>The version of ODBC that the DB2 client supports. This returns a
        string &quot;MM.mm&quot; where <var class="varname">MM</var> is the major version and
        <var class="varname">mm</var> is the minor version. The DB2 client always
        returns &quot;03.51&quot;.
       </td>
      </tr>

      <tr>
       <td>DRIVER_VER</td>
       <td>string</td>
       <td>The version of the client, in the form of a string &quot;MM.mm.uuuu&quot; where
        <var class="varname">MM</var> is the major version,
        <var class="varname">mm</var> is the minor version,
        and <var class="varname">uuuu</var> is the update. For example, &quot;08.02.0001&quot;
        represents major version 8, minor version 2, update 1.
       </td>
      </tr>

      <tr>
       <td>ODBC_SQL_CONFORMANCE</td>
       <td>string</td>
       <td>
        <p class="para">The level of ODBC SQL grammar supported by the client:
        <dl>
         
          <dt>MINIMUM</dt>
          <dd>
           <span class="simpara">
            Supports the minimum ODBC SQL grammar.
           </span>
          </dd>
         
         
          <dt>CORE</dt>
          <dd>
           <span class="simpara">
            Supports the core ODBC SQL grammar.
           </span>
          </dd>
         
         
          <dt>EXTENDED</dt>
          <dd>
           <span class="simpara">
            Supports extended ODBC SQL grammar.
           </span>
          </dd>
         
        </dl>
        </p>
       </td>
      </tr>

      <tr>
       <td>ODBC_VER</td>
       <td>string</td>
       <td>The version of ODBC that the ODBC driver manager supports. This
        returns a string &quot;MM.mm.rrrr&quot; where <var class="varname">MM</var> is the major
        version, <var class="varname">mm</var> is the minor version, and
        <var class="varname">rrrr</var> is the release. The DB2 client always returns
        &quot;03.01.0000&quot;.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.db2-client-info-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">connection</code></dt>
    <dd>
     <span class="simpara">
      Specifies an active DB2 client connection.
     </span>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.db2-client-info-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Returns an object on a successful call, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner
  </p>
 </div>


 

 

 <div class="refsect1 examples" id="refsect1-function.db2-client-info-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 A <span class="function"><strong>db2_client_info()</strong></span> example</strong></p>
   <div class="example-contents"><p>
    To retrieve information about the client, you must pass a valid
    database connection resource to <span class="function"><strong>db2_client_info()</strong></span>.
   </p></div>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$conn </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_connect</span><span style="color: #007700">( </span><span style="color: #DD0000">'SAMPLE'</span><span style="color: #007700">, </span><span style="color: #DD0000">'db2inst1'</span><span style="color: #007700">, </span><span style="color: #DD0000">'ibmdb2' </span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$client </span><span style="color: #007700">= </span><span style="color: #0000BB">db2_client_info</span><span style="color: #007700">( </span><span style="color: #0000BB">$conn </span><span style="color: #007700">);<br /><br />if (</span><span style="color: #0000BB">$client</span><span style="color: #007700">) {<br />    echo </span><span style="color: #DD0000">"DRIVER_NAME: "</span><span style="color: #007700">;           </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">DRIVER_NAME </span><span style="color: #007700">);<br />    echo </span><span style="color: #DD0000">"DRIVER_VER: "</span><span style="color: #007700">;            </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">DRIVER_VER </span><span style="color: #007700">);<br />    echo </span><span style="color: #DD0000">"DATA_SOURCE_NAME: "</span><span style="color: #007700">;      </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">DATA_SOURCE_NAME </span><span style="color: #007700">);<br />    echo </span><span style="color: #DD0000">"DRIVER_ODBC_VER: "</span><span style="color: #007700">;       </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">DRIVER_ODBC_VER </span><span style="color: #007700">);<br />    echo </span><span style="color: #DD0000">"ODBC_VER: "</span><span style="color: #007700">;              </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">ODBC_VER </span><span style="color: #007700">);<br />    echo </span><span style="color: #DD0000">"ODBC_SQL_CONFORMANCE: "</span><span style="color: #007700">;  </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">ODBC_SQL_CONFORMANCE </span><span style="color: #007700">);<br />    echo </span><span style="color: #DD0000">"APPL_CODEPAGE: "</span><span style="color: #007700">;         </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">APPL_CODEPAGE </span><span style="color: #007700">);<br />    echo </span><span style="color: #DD0000">"CONN_CODEPAGE: "</span><span style="color: #007700">;         </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$client</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">CONN_CODEPAGE </span><span style="color: #007700">);<br />}<br />else {<br />    echo </span><span style="color: #DD0000">"Error retrieving client information.<br />     Perhaps your database connection was invalid."</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">db2_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>
Yukarıdaki örneğin çıktısı:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">DRIVER_NAME: string(8) &quot;libdb2.a&quot;
DRIVER_VER: string(10) &quot;08.02.0001&quot;
DATA_SOURCE_NAME: string(6) &quot;SAMPLE&quot;
DRIVER_ODBC_VER: string(5) &quot;03.51&quot;
ODBC_VER: string(10) &quot;03.01.0000&quot;
ODBC_SQL_CONFORMANCE: string(8) &quot;EXTENDED&quot;
APPL_CODEPAGE: int(819)
CONN_CODEPAGE: int(819)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.db2-client-info-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.db2-server-info.php" class="function" rel="rdfs-seeAlso">db2_server_info()</a> - Returns an object with properties that describe the DB2 database server</span></li>
  </ul>
 </div>



</div><?php manual_footer($setup); ?>