PHP SQLite connection in OpenBSD

2011-12-13 Thread 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 installed as evidenced by my php info page:

Re: PHP SQLite connection in OpenBSD

2011-12-13 Thread richardtoohey
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

Re: PHP SQLite connection in OpenBSD

2011-12-13 Thread Bentley, Dain
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

Re: PHP SQLite connection in OpenBSD

2011-12-13 Thread Bentley, Dain
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

Re: PHP SQLite connection in OpenBSD

2011-12-13 Thread richardtoohey
> 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

Re: PHP SQLite connection in OpenBSD

2011-12-13 Thread richardtoohey
y ( [apple_id] => 44 [0] => 44 ) # cat /tmp/test.php query("SELECT * FROM apple"); foreach ($res as $r) { print_r($r); } ?> HTH. > > > > ____________ > > From:

Re: PHP SQLite connection in OpenBSD

2011-12-13 Thread Bentley, Dain
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

Re: PHP SQLite connection in OpenBSD

2011-12-14 Thread Stuart Henderson
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