SQLite offers a built-in OO interface to the database without the need for PHP wrappers.

<?php
    try {
        /* object sqlite_db(string filename [, int mode [, string &error_message]]) */
        $db = new sqlite_db(":memory:");
    }
    /* Error occur let's handle it
     * In php5 unhandled exceptions result in fatal errors 
     */
    catch (Exception $exception) { 
        echo $exception; 
    }
?>