PHP and SQlite3

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Aharon
    Private

    • Mar 2008
    • 2

    PHP and SQlite3

    Trying to use SQlite3 but I must be doing something wrong.

    I tried using PDO as follows :


    // create a SQLite3 database file with PDO and return a database handle

    try{

    $dbHandle = new
    PDO('sqlite:'.$_SERVER['DOCUMENT_ROOT'].'/../pdoTutorial.sqlite3');

    }catch( PDOException $exception ){

    die($exception->getMessage());

    }



    but got the following error message:

    Fatal error: Class 'PDO' not found in /home/zbfckla/public_html/Ocx.php on
    line 14


    I am just trying to access a sqlite3 db that I created on my pc and uploaded to my site.

    Thanks
    Aharon
    bme-eng.com
Working...
X