SQLite 3 and PHP – “unable to open database file”

While playing with SQLite 3 and PHP, I encountered an oddity: the SQLite database file must be writable AND be in a writable directory. So if you’re running SQLite commands from within a PHP web page, the directory your database is in and the database itself must be writable by your www user. With most […]