Problem connecting to Postgres

From: Date: Mon, 23 Aug 2004 15:52:15 +0000
Subject: Problem connecting to Postgres
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194483@lists.php.net to get a copy of this message
Hi, I am a newby having a configuration problem. I am using PHP 4.3.6 and postgres 7.4.3 The problem is when I try to execute my php scripts that connect to postgres from the command line I get error like this: Fatal error: Call to undefined function: pg_connect() in /Users/jcapy2/Sites/Jesper/SyncPosgresToMbrMaxData .php on line 28 But it works fine from a browser using apache. I have tried various user logins and have checked the environmental paths and all seems ok so it must be some configure problem but with what PHP or Postgres?

« previous php.general (#194483) next »