Re: PHP/PearDB works on commandline but not via http....

From: Date: Thu, 19 Aug 2004 17:53:43 +0000
Subject: Re: PHP/PearDB works on commandline but not via http....
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-194270@lists.php.net to get a copy of this message
On Thu, 19 Aug 2004 08:44:39 -0700, pw <p.willis@telus.net> wrote: > > > Justin Patrin wrote: > > > > > > Did you try: > > if(PEAR::isError($db)) { > > echo $db->getMessage().' '.$db->getUserInfo(); > > } > > > > It's probably because: > > 1) the postgres the module isn't in the PHP that apache is using > > 2) the postgres module isn't loaded in the PHP that apache is using > > 3) the postgres module in the PHP that apache is using is connecting > > via a socket instead of a port (or vice-versa) > > > > I think you may have something with the apache module points. > I'll ask if apache has been built or is just the install from > the linux distro. I built apache previously, but I didn't install > this machine.... > Write a script with just: <?php phpinfo(); ?> Run it through apache. Look for the postgres module (may be called pgsql). -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.general (#194270) next »