Mailinglist Archive: opensuse (2224 mails)

< Previous Next >
[opensuse] php5 -> sqlite3 error
  • From: Daniel Bauer <linux@xxxxxxxxxxxxxxxx>
  • Date: Fri, 2 Feb 2007 13:10:23 +0100
  • Message-id: <200702021310.23552.linux@xxxxxxxxxxxxxxxx>
Hi list,

I am trying to access a sqlite3 file with php5, but I get the error:

Warning: sqlite_open() [function.sqlite-open]: file is encrypted or is not a
database

I can open that file (its a digikam db) with knoda. For the test I gave the
file and its folder rw rights for everybody. My script starts with:

<?php
$dbname='tst/tstdigikam3.db';
if (!$db = sqlite_open($dbname, 0666, $err) )
die("OpenFehler: $err");
...

Any idea what I am doing wrong?

Daniel
--
Daniel Bauer photographer Basel Switzerland
professional photography: http://www.daniel-bauer.com
Madagascar special: http://www.sanic.ch
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >