<?php$db = sqlite_popen("/path/to/database", 0666, $error) or die("Failed to connect because: ".$error);?>