As with the other suggestions, have a read of https://www.sqlite.org/howtocorrupt.html
If you've got to distinct machines/OS's trying to touch the same file, you might be looking at other issues. Also, if you are indeed working over a network, your timeout might be set so low that SQLite just times out regardless of what PHP or Windows is doing. On Thu, Jan 14, 2016 at 5:57 AM, Werner Kleiner <sqlitetester at gmail.com> wrote: > Hello > I have written a small Wep application with PHP (PDO Apache,). This web app > uses a sqlite db3 database. Also there is a Windows application which uses > the same database file. > Now we heard one time that there war a problem and in a log file we saw the > error code > "Database is locked" > My question now is: > Could this be a problem when Apache or PHP uses same database and also a > windows application? > For example if PHP writes to table "users" and windows application reads > from "users" at same time? > Or what else can cause this error? > > best regards > Werner > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users >