If you miss to set the permissions mentioned by ivoras Sqlite will drop an error message saying "Malformed database scheme", which is somehow misleading.
(I mentioned this as some [I did] might search php.net for this error message)
![]() |
|
||||||||||
|
sqlite_openОписаниеresource sqlite_open ( string filename [, int mode [, string &error_message]] )Возвращает ресурс (идентификатор базы данных) при успешном завершении, FALSE при возникновении ошибки.
Аргумент
Аргумент
Аргумент
sqlite_open
Phillip Berndt
02-Mar-2007 06:52
If you miss to set the permissions mentioned by ivoras Sqlite will drop an error message saying "Malformed database scheme", which is somehow misleading.
15-Nov-2006 02:45
the above example dows not! work since sqlite_query() does not accept one argument, but only 2.
ivoras at fer dot hr
26-May-2004 10:46
Since sqlite uses a journal to do updates and inserts (and creates it on the fly), you ALSO must have write permissions set for the web server to write in the same DIRECTORY as the database file.
|