update : 2015.11.03
php.shukuma.com검색:
|
sqlite_open(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) sqlite_open — Opens an SQLite database and create the database if it does not exist 설명
resource sqlite_open
( string
$filename
[, int $mode = 0666
[, string &$error_message
]] )객체 기반 형식 (constructor):
final public SQLiteDatabase::__construct
( string
$filename
[, int $mode = 0666
[, string &$error_message
]] )Opens an SQLite database or creates the database if it does not exist. 인수
반환값
Returns a resource (database handle) on success, 예제
Example #1 sqlite_open() example
<?php 주의Tip
On Unix platforms, SQLite is sensitive to scripts that use the fork() system call. If you do have such a script, it is recommended that you close the handle prior to forking and then re-open it in the child and/or parent. For more information on this issue, see » The C language interface to the SQLite library in the section entitled Multi-Threading And SQLite. Tip
It is not recommended to work with SQLite databases mounted on NFS partitions. Since NFS is notoriously bad when it comes to locking you may find that you cannot even open the database at all, and if it succeeds, the locking behaviour may be undefined.
참고
|