SQLite Forum

Opening a database without creating a new one and Error logging

public SQLite3::open ( string $filename [, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE [, string $encryption_key = "" ]] ) : void

Optional flags used to determine how to open the SQLite database. By default, open uses `SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE`.

`SQLITE3_OPEN_READONLY`: Open the database for reading only.

`SQLITE3_OPEN_READWRITE`: Open the database for reading and writing.

`SQLITE3_OPEN_CREATE`: Create the database if it does not exist.

But, indeed, this is not a PHP forum.... ;)