On Saturday 03 February 2007 04:55, Cristian Rodriguez R. wrote:
> Daniel Bauer escribió:
> > 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?
>
> Yes, I do know what are you doing wrong. you are using the wrong
> extension ;)
>
> the sqlite extension supports only sqlite version 2, you need to use PDO
> sqlite for sqlite 3,. it is included in the same package in 10.2.
>
> See also http://php.net/pdo
thanks, I'll read thru this... :-)
Daniel
--
Daniel Bauer photographer Basel Switzerland
professional photography: http://www.daniel-bauer.com
Madagascar special: http://www.sanic.ch
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]