Aharon (Rony) Shapira wrote:
> <snip>
>   

> $db = new SQLiteDatabase($file) or die("Could not open database");
>
> I got the following:
>
> Fatal error: Uncaught exception 'SQLiteException' with message 
> 'SQLiteDatabase::__construct() [<a 
> href='function.SQLiteDatabase---construct'>function.SQLiteDatabase---construct</a>]:
>  file is encrypted or is not a database' in 
> /home/zbfckla/public_html/Ocx.php:17 Stack trace: #0 
> /home/zbfckla/public_html/Ocx.php(17): 
> SQLiteDatabase->__construct('library.db') #1 {main} thrown in 
> /home/zbfckla/public_html/Ocx.php on line 17
>
>
>   

Could this be Apache permissions?

Is the directory/file world readable and writable?  Remember APACHE 
normaly runs as user NOBODY so permissions usually need to be chmod to 
666 (or 777 for DIRs) for files (or directories) that need to be written to

Eddy
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to