Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 11811

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Connecting to 4D SQL server</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.pdo-4d.html">4D (PDO)</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="pdo-4d.constants.html">Constants for PDO_4D</a></div>
 <div class="up"><a href="ref.pdo-4d.html">4D (PDO)</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="ref.pdo-4d.connection" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">PDO_4D DSN</h1>
    <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">PDO_4D DSN</span> &mdash; <span class="dc-title">Connecting to 4D SQL server</span></p>

   </div>

   <div class="refsect1 description" id="refsect1-ref.pdo-4d.connection-description">
    <h3 class="title">Description</h3>
    <p class="para">
     The PDO_4D DSN consists of:
     <dl>

      
       <dt>
DSN prefix</dt>

       <dd>

        <p class="para">
         The DSN prefix is <strong class="userinput"><code>4D:</code></strong>.
        </p>
       </dd>

      
      
       <dt>
<em>host</em></dt>

       <dd>

        <p class="para">
         The host on which the 4D SQL server is.
        </p>
       </dd>

      
      
       <dt>
<em>port</em></dt>

       <dd>

        <p class="para">
         The port number for the server. This is optional.
        </p>
       </dd>

      
      
       <dt>
<em>user</em></dt>

       <dd>

        <p class="para">
         The login name when connecting to the database.
        </p>
       </dd>

      
      
       <dt>
<em>password</em></dt>

       <dd>

        <p class="para">
         The password for the above login. 
        </p>
       </dd>

      
      
       <dt>
<em>dbname</em></dt>

       <dd>

        <p class="para">
         The name of the database. This parameter is optional,
         and it is not used.
        </p>
       </dd>

      
      
       <dt>
<em>charset</em></dt>

       <dd>

        <p class="para">
         The 4D character set.
        </p>
       </dd>

      
     </dl>

    </p>
   </div>

   <div class="refsect1 examples" id="refsect1-ref.pdo-4d.connection-examples">
    <h3 class="title">Examples</h3>
    <p class="para">
     <div class="example" id="example-1115">
      <p><strong>Example #1 DSN examples for PDO_4D</strong></p>
      <div class="example-contents"><p>
       The following examples has two DSN for PDO_4D,
       that connects to a 4D database : 
       <div class="example-contents">
<div class="cdata"><pre>
4D:host=localhost;charset=UTF-8
</pre></div>
       </div>

       Other possible values : 
       <div class="example-contents">
<div class="cdata"><pre>
4D:host=localhost
4D:
</pre></div>
       </div>

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

  </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.pdo-4d.html">4D (PDO)</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="pdo-4d.constants.html">Constants for PDO_4D</a></div>
 <div class="up"><a href="ref.pdo-4d.html">4D (PDO)</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>