SQLite Connection Problem
Posted: Mon Nov 29, 2004 1:57 pm
Hi All,
I've only started to experiment with PHP5 and SQLite lately and I ran into this problem when I try to connect to a SQLite database:
Warning: sqlite_open() [function.sqlite-open]: file is encrypted or is not a database in D:\backup\wwwroot\phpbbs\categories.php on line 9
Could not open database
Here's the PHP code:
For the database I basically ran a bunch of simple create table statements. And it seemed to work when I tried to run sql commands in sqlite3.exe.
What seems to be the problem?
Thanks!
Will
I've only started to experiment with PHP5 and SQLite lately and I ran into this problem when I try to connect to a SQLite database:
Warning: sqlite_open() [function.sqlite-open]: file is encrypted or is not a database in D:\backup\wwwroot\phpbbs\categories.php on line 9
Could not open database
Here's the PHP code:
Code: Select all
$db = "./newdb.db";
$handle = sqlite_open($db) or die("Could not open database");What seems to be the problem?
Thanks!
Will