I have a script that shows all the tables in a sqlite database. It works just fine with all the dbs I created.
I got curious what was stored in the sqlite databases in Firefox. Every time I run the script trying to load one of those dbs I get this strange error.
Fatal error: Uncaught exception 'SQLiteException' with message 'SQLiteDatabase::__construct() [<a href='sqlitedatabase.--construct'>sqlitedatabase.--construct</a>]: file is encrypted or is not a database' in C:\GW_Server\Apache\htdocs\SQLiteAdmin\SCRIPT\config.php:10 Stack trace: #0 C:\GW_Server\Apache\htdocs\SQLiteAdmin\SCRIPT\config.php(10): SQLiteDatabase->__construct('urlclassifier3....') #1 C:\GW_Server\Apache\htdocs\SQLiteAdmin\SCRIPT\header.php(3): require_once('C:\GW_Server\Ap...') #2 C:\GW_Server\Apache\htdocs\SQLiteAdmin\SCRIPT\index.php(3): require_once('C:\GW_Server\Ap...') #3 {main} thrown in C:\GW_Server\Apache\htdocs\SQLiteAdmin\SCRIPT\config.php on line 10
I got php 5.3 with sqlite3
Strangely if I use the sqlite3 command line library. I'm able to access it.
What may I be doing wrong in my script or what do I need to add to it to possibly get it to work?