Mailinglist Archive: opensuse (2224 mails)

< Previous Next >
Re: [opensuse] php5 -> sqlite3 error
  • From: Daniel Bauer <linux@xxxxxxxxxxxxxxxx>
  • Date: Sat, 3 Feb 2007 10:46:52 +0100
  • Message-id: <200702031046.52085.linux@xxxxxxxxxxxxxxxx>
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: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >