Fixing PHP SQLite database is locked warning - Unable to execute statement: database is locked

Apparently this error is caused by not closing the database after using it. 

Warning: SQLite3::query(): Unable to execute statement: database is locked.

You can close the database using the following code:



// you can also set a busy timeout for sqlite

Other Items in php
Related Search Terms
Page Views

This page has been viewed 340 times.

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.


Random Quote
Be Yourself, Back Yourself
Kristie Bennett, Survivor