Re: [PHP] works at command line but not in apache

2007-03-18 Thread Jim Lucas
Tijnema ! wrote: On 3/18/07, rwhartung <[EMAIL PROTECTED]> wrote: Thanks, but I have these changes in and it still will not connect: file: pg_hba.conf: # IPv4 local connections: hostall all 127.0.0.1/32 ident sameuser postgrsql.conf: listen_addresses = 'localhost

Re: [PHP] works at command line but not in apache

2007-03-18 Thread Tijnema !
On 3/18/07, rwhartung <[EMAIL PROTECTED]> wrote: Thanks, but I have these changes in and it still will not connect: file: pg_hba.conf: # IPv4 local connections: hostall all 127.0.0.1/32 ident sameuser postgrsql.conf: listen_addresses = 'localhost' port = 5432 I

Re: [PHP] works at command line but not in apache

2007-03-18 Thread Jim Lucas
rwhartung wrote: Hi, I have this short php script: [op;ening removed. $db = pg_connect('dbname=bpsimple user=minitwr password=RWHart') ; print $db . "" . "\n" ; if ($db) { print 'Connection attempt succeeded.' . "" . "\n" ; } else { print 'Connection attempt failed.'. "" . "\n" ; }

Re: [PHP] works at command line but not in apache

2007-03-17 Thread Tijnema !
On 3/17/07, rwhartung <[EMAIL PROTECTED]> wrote: Hi, I have this short php script: [op;ening removed. $db = pg_connect('dbname=bpsimple user=minitwr password=RWHart') ; print $db . "" . "\n" ; if ($db) { print 'Connection attempt succeeded.' . "" . "\n" ; } else { print 'Con

[PHP] works at command line but not in apache

2007-03-17 Thread rwhartung
Hi, I have this short php script: [op;ening removed. $db = pg_connect('dbname=bpsimple user=minitwr password=RWHart') ; print $db . "" . "\n" ; if ($db) { print 'Connection attempt succeeded.' . "" . "\n" ; } else { print 'Connection attempt failed.'. "" . "\n" ; } $query = '