php-sqlite3 : Main / Installation

Installing php-sqlite3

Follow these steps to install php-sqlite3:

 phpize
 ./configure --with-sqlite3=/path/to/sqlite3
 make && make install

You may (optionally) install DB/sqlite3.php class; this will add the sqlite3 driver to the PEAR database abstraction layer (see http://pear.php.net/package/DB).

 cp DB/sqlite3.php  /path/to/php/lib/php/DB/sqlite3.php

Enabling the extension

    * runtime loading: 

add the following line near the beginning of your script:

 dl('sqlite3.so');

    * in php.ini: 

add (or update) the following line in php.ini:

 extensions = sqlite3.so [other extensions]
Retrieved from http://php-sqlite3.sourceforge.net/pmwiki/pmwiki.php/Main/Installation
(Printable View)