Main /
Installation
Search:  

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]
Page last modified on November 16, 2008, at 05:00 PM
Edit SideBar Edit Page | Attach | Page History | Wiki Help | Print
PmWiki version pmwiki-2.0.10