downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Introducción> <sqlite_valid
Last updated: Fri, 20 May 2011

view this page in

SQLite3



add a note add a note User Contributed Notes SQLite3
Anonymous 09-Mar-2011 11:31
If you get the following error for non-encrypted databases:

Warning: SQLite3::query() [sqlite3.query]: Unable to prepare statement: 26, file is encrypted or is not a database in …

... use PDO instead of this library.
alan at chandlerfamily dot org dot uk 09-Aug-2010 08:36
PHP 5.3.3 introduced sqlite3::busyTimeout(int milliseconds) which does not currently seem to be documented.

It believe it acts like sqlite::busyTimeout - that is it tells sqlite3 to call an internal busyHandler if SQLITE_BUSY is returned from any call which waits a short period and then retries.  It continues to do this until milliseconds milliseconds have elapsed and then returns the SQLITE_BUSY status.

I don't know whether the default 60 second value is in place if this function is not called.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites