Reputation: 3956
I already did chmod 777 slqite.db
. Anyone know whats problem?
Upvotes: 2
Views: 1406
Reputation: 3956
Ffinally I found the answer:
the sqlite3 library needs write permissions also on the directory that contains it, probably because it needs to create a lockfile.
Therefor when I use sql to insert data there is no problem, but when I do it through web cgi,fastcgi etc)to insert data there would be an error.
Just add write permission to the directory.
Upvotes: 4