<?php
/* resource sqlite_open(string filename [, int mode [, string &error_message]]) */
$db = sqlite_open("db.sqlite", 0666, $error)
or die("Failed to connect because: ".$error);
/* opened a connection to memory only database */
?>