<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/pdo.drivers.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'ref.pdo-sqlite.php',
    1 => 'SQLite PDO Driver',
    2 => 'SQLite PDO Driver (PDO_SQLITE)',
  ),
  'up' => 
  array (
    0 => 'pdo.drivers.php',
    1 => 'PDO Drivers',
  ),
  'prev' => 
  array (
    0 => 'pdo-pgsql.setnoticecallback.php',
    1 => 'Pdo\\Pgsql::setNoticeCallback',
  ),
  'next' => 
  array (
    0 => 'ref.pdo-sqlite.connection.php',
    1 => 'PDO_SQLITE DSN',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pdo_sqlite/reference.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/ref.pdo-sqlite.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ref.pdo-sqlite" class="reference">
  
  <h1 class="title">SQLite PDO Driver (PDO_SQLITE)</h1>
  
  <div class="partintro">

   <div class="section" id="ref.pdo-sqlite.intro">
   <h2 class="title">Introduction</h2>
    <p class="para">
     PDO_SQLITE is a driver that implements the <a href="book.pdo.php#intro.pdo" class="link">PHP
     Data Objects (PDO) interface</a> to enable access to SQLite 3 databases.
    </p>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      PDO_SQLITE allows using strings apart from streams together with
      <strong><code><a href="pdo.constants.php#pdo.constants.param-lob">PDO::PARAM_LOB</a></code></strong>.
     </p>
    </p></blockquote>
   </div>

   

<div class="section" id="ref.pdo-sqlite.installation">
 <h2 class="title">Installation</h2>
 <p class="para">
  The PDO_SQLITE PDO driver is enabled by default. To disable,
  <strong class="option configure">--without-pdo-sqlite[=DIR]</strong> may be used, 
  where the optional <code class="literal">[=DIR]</code> is the sqlite base install directory.
  As of PHP 7.4.0 <a href="http://sqlite.org/" class="link external">&raquo;&nbsp;libsqlite</a> ≥ 3.5.0 is required.
  Formerly, the bundled libsqlite could have been used instead, and was the
  default, if <code class="literal">[=DIR]</code> has been omitted.
 </p>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <strong>Additional setup on Windows as of PHP 7.4.0</strong><br />
  <p class="para">
   In order for this extension to work, there are
<abbr title="Dynamic Link Library">DLL</abbr> files that must be available to the Windows
system <var class="envar">PATH</var>. For information on how to do this, see the
<abbr title="Frequently Asked Questions">FAQ</abbr> entitled &quot;<a href="faq.installation.php#faq.installation.addtopath" class="link">How do I add my PHP directory to the PATH
on Windows</a>&quot;. Although copying DLL
files from the PHP folder into the Windows system directory also works
(because the system directory is by default in the system&#039;s
<var class="envar">PATH</var>), this is not recommended.
<em>This extension requires the following files to be in the
<var class="envar">PATH</var>:</em>  <var class="filename">libsqlite3.dll</var>.
  </p>
 </p></blockquote>
</div>




  </div>

  

 















 <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="ref.pdo-sqlite.connection.php">PDO_SQLITE DSN</a> — Connecting to SQLite databases</li><li><a href="pdo.sqlitecreateaggregate.php">PDO::sqliteCreateAggregate</a> — Alias of Pdo\Sqlite::createAggregate</li><li><a href="pdo.sqlitecreatecollation.php">PDO::sqliteCreateCollation</a> — Alias of Pdo\Sqlite::createCollation</li><li><a href="pdo.sqlitecreatefunction.php">PDO::sqliteCreateFunction</a> — Alias of Pdo\Sqlite::createFunction</li></ul>
</div>
<?php manual_footer($setup); ?>