<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pdo-firebird.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'ref.pdo-firebird.connection.php',
    1 => 'PDO_FIREBIRD DSN',
    2 => 'Connecting to Firebird databases',
  ),
  'up' => 
  array (
    0 => 'ref.pdo-firebird.php',
    1 => 'Firebird PDO Driver',
  ),
  'prev' => 
  array (
    0 => 'ref.pdo-firebird.php',
    1 => 'Firebird PDO Driver',
  ),
  'next' => 
  array (
    0 => 'class.pdo-firebird.php',
    1 => 'Pdo\\Firebird',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pdo_firebird/reference.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ref.pdo-firebird.connection" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">PDO_FIREBIRD DSN</h1>
    <p class="verinfo">(PECL PDO_FIREBIRD &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">PDO_FIREBIRD DSN</span> &mdash; <span class="dc-title">Connecting to Firebird databases</span></p>

   </div>

   <div class="refsect1 description" id="refsect1-ref.pdo-firebird.connection-description">
    <h3 class="title">Descrizione</h3>
    <p class="para">
     The PDO_FIREBIRD Data Source Name (DSN) is composed of the following elements:
     <dl>
      
       <dt>DSN prefix</dt>
       <dd>
        <p class="para">
        The DSN prefix is <strong class="userinput"><code>firebird:</code></strong>.
        </p>
       </dd>
      
      
       <dt><code class="literal">dbname</code></dt>
       <dd>
        <p class="para">
         The name of the database.
        </p>
       </dd>
      
      
       <dt><code class="literal">charset</code></dt>
       <dd>
        <p class="para">
         The character set.
        </p>
       </dd>
      
      
       <dt><code class="literal">role</code></dt>
       <dd>
        <p class="para">
         The SQL role name.
        </p>
       </dd>
      
      
       <dt><code class="literal">dialect</code></dt>
       <dd>
        <p class="para">
         The dialect of the database; either <code class="literal">1</code> or <code class="literal">3</code>.
         If not specified, the dialect defaults to <code class="literal">3</code>.
         Available as of PHP 7.4.0.
        </p>
       </dd>
      
     </dl>
    </p>
   </div>

   <div class="refsect1 examples" id="refsect1-ref.pdo-firebird.connection-examples">
    <h3 class="title">Esempi</h3>
    <p class="para">
     <div class="example" id="example-1">
      <p><strong>Example #1 PDO_FIREBIRD DSN example with path</strong></p>
      <div class="example-contents"><p>
       The following example shows a PDO_FIREBIRD DSN for connecting to
       Firebird databases:
       <div class="example-contents"><div class="cdata"><pre>
firebird:dbname=/path/to/DATABASE.FDB
</pre></div>
       </div>

      </p></div>
     </div>
     <div class="example" id="example-2">
      <p><strong>Example #2 PDO_FIREBIRD DSN example with port and path</strong></p>
      <div class="example-contents"><p>
       The following example shows a PDO_FIREBIRD DSN for connecting to
       a Firebird database using hostname port and path:
       <div class="example-contents"><div class="cdata"><pre>
firebird:dbname=hostname/port:/path/to/DATABASE.FDB
</pre></div>
       </div>

      </p></div>
     </div>
     <div class="example" id="example-3">
      <p><strong>Example #3 PDO_FIREBIRD DSN example with localhost and path to employee.fdb on Debian system</strong></p>
      <div class="example-contents"><p>
       The following example shows a PDO_FIREBIRD DSN for connecting to
       a Firebird database employee.fdb using localhost:
       <div class="example-contents"><div class="cdata"><pre>
firebird:dbname=localhost:/var/lib/firebird/2.5/data/employee.fdb
</pre></div>
       </div>

      </p></div>
     </div>
     <div class="example" id="example-4">
      <p><strong>Example #4 PDO_FIREBIRD DSN to connect to a dialect 1 database</strong></p>
      <div class="example-contents"><p>
       The following example shows a PDO_FIREBIRD DSN for connecting to
       a Firebird database test.fdb which has been created using dialect 1.
       This is only supported as of PHP 7.4.0.
      </p></div>
      <div class="example-contents">
<div class="cdata"><pre>
firebird:dbname=localhost:/var/lib/firebird/2.5/data/test.fdb;charset=utf-8;dialect=1
</pre></div>
</div>

     </div>
    </p>
   </div>

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