sqlite3.open(3) php man page | unix.com

Man Page: sqlite3.open

Operating Environment: php

Section: 3

SQLITE3.OPEN(3) 														   SQLITE3.OPEN(3)

SQLite3::open - Opens an SQLite database

SYNOPSIS
public void SQLite3::open (string $filename, [int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE], [string $encryption_key])
DESCRIPTION
Opens an SQLite 3 Database. If the build includes encryption, then it will attempt to use the key.
PARAMETERS
o $filename - Path to the SQLite database, or :memory: to use in-memory database. o $flags - Optional flags used to determine how to open the SQLite database. By default, open uses SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE. o SQLITE3_OPEN_READONLY: Open the database for reading only. o SQLITE3_OPEN_READWRITE: Open the database for reading and writing. o SQLITE3_OPEN_CREATE: Create the database if it does not exist. o $encryption_key - An optional encryption key used when encrypting and decrypting an SQLite database.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1 SQLite3.open(3) example <?php /** * Simple example of extending the SQLite3 class and changing the __construct * parameters, then using the open method to initialize the DB. */ class MyDB extends SQLite3 { function __construct() { $this->open('mysqlitedb.db'); } } $db = new MyDB(); $db->exec('CREATE TABLE foo (bar STRING)'); $db->exec("INSERT INTO foo (bar) VALUES ('This is a test')"); $result = $db->query('SELECT bar FROM foo'); var_dump($result->fetchArray()); ?> PHP Documentation Group SQLITE3.OPEN(3)
Related Man Pages
sqlheavy-gen-orm(1) - debian
edb-sqlite(7) - debian
sqlite_popen(3) - php
dbix::dbschema::dbd::sqlite(3pm) - debian
parse::dia::sql::output::sqlite3(3pm) - debian
Similar Topics in the Unix Linux Community
4FRONT TECHNOLOGIES RELEASES THE SOURCE CODE FOR OPEN SOUND SYSTEM - Linux PR (press
CrunchyFrog 0.2.0 beta1 (Default branch)
CrunchyFrog 0.2.0 beta2 (Default branch)
CrunchyFrog 0.2.0 (Default branch)
Need comma separated processing