Fatal error: Class 'SQLite3' not found

Bug #290263 reported by John Gelm
6
Affects Status Importance Assigned to Milestone
php-sqlite3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Running 8.04 64bit desktop w/LAMP added and would like to try out SQLite3 with PHP.

I get the error when running the example from:
http://us.php.net/manual/en/sqlite3.open.php

as follows:

root@voyager:/var/www/foliofn# cat example.php; php example.php
<?php
$db = new SQLite3('mysqlitedb.db');

$db->exec('CREATE TABLE foo (bar STRING)');
$db->exec("INSERT INTO foo (bar) VALUES ('This is a test')");

$result = $db->query('SELECT bar FROM foo');
var_dump($result->fetchArray());
?>

Fatal error: Class 'SQLite3' not found in /var/www/foliofn/example.php on line 2
root@voyager:/var/www/foliofn#

I have used synaptic to install anything I could find related to SQLite/SQLite3.

Any Ideas?

John

P.S. http://ubuntuforums.org/showthread.php?t=891767&highlight=sqlite

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.