Hello all, I'm trying to connect to a sqlite database with PHP and I'm having
an issue of "driver not found". I've installed php from packages and and have
installed the php_sqlite package and configured the module for apache.
The PDO driver seems to be installed as evidenced by my php info page:
Quoting "Bentley, Dain" :
> Hello all, I'm trying to connect to a sqlite database with PHP and I'm
> having
> an issue of "driver not found". I've installed php from packages and and
> have
> installed the php_sqlite package and configured the module for apache.
> The PDO driver seems to be instal
misc@openbsd.org
Subject: Re: PHP SQLite connection in OpenBSD
Quoting "Bentley, Dain" :
> Hello all, I'm trying to connect to a sqlite database with PHP and I'm
> having an issue of "driver not found". I've installed php from
> packages and and have installed t
packaged third party tools if I can help it.
From: joshua stein [j...@openbsd.org]
Sent: Tuesday, December 13, 2011 6:08 PM
To: Bentley, Dain
Subject: Re: PHP SQLite connection in OpenBSD
> PDO driverssqlite2
>
> Here is the code I a
> From: joshua stein [j...@openbsd.org]
> Sent: Tuesday, December 13, 2011 6:08 PM
> To: Bentley, Dain
> Subject: Re: PHP SQLite connection in OpenBSD
>
> > PDO drivers sqlite2
> >
> > Here is the code I am using to attempt to connect
> > &g
y
(
[apple_id] => 44
[0] => 44
)
# cat /tmp/test.php
query("SELECT * FROM apple");
foreach ($res as $r) {
print_r($r);
}
?>
HTH.
> >
> > ____________
> > From:
uery("SELECT * FROM apple");
foreach ($res as $r) {
print_r($r);
}
?>
HTH.
> >
> > ____________
> > From: joshua stein [j...@openbsd.org]
> > Sent: Tuesday, December 13, 2011 6:08 PM
> > To: Bentley, Dain
> > Su
On 2011-12-13, Bentley, Dain wrote:
> Thanks for the help. I'm getting a different error now:
> SQLSTATE[HY000] [1] unable to open database: /path/to/db
>
> Can't seem to find much on this error. Something from the PHP website about
> having to recompile PHP from source but it's an old thread an
8 matches
Mail list logo