how to enable sqlite3 for php?

Posted by terrani on Stack Overflow See other posts from Stack Overflow or by terrani
Published on 2009-06-04T06:35:12Z Indexed on 2010/03/27 6:03 UTC
Read the original article Hit count: 1117

Filed under:
|

Hi,

I am trying to install sqlite3 for php in ubuntu.

I install apt-get php5-sqlite3 and edited php.ini to include sqlite3 extension.

When I run phpinfo(); I get

SQLITE3 SQLite3 support enabled
sqlite3 library version 3.4.2

as shown above, sqlite3 is enabled. However, I get "Class SQLite3 not found" when I use

 new SQLite3("database");

© Stack Overflow or respective owner

Related posts about sqlite3

Related posts about php