Re: Pear DB error

From: Date: Wed, 10 Nov 2004 17:42:25 +0000
Subject: Re: Pear DB error
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15421@lists.php.net to get a copy of this message
On Wed, 10 Nov 2004 11:55:53 +0000, Rui Francisco <rui.francisco@fccn.pt> wrote: > Hi, > > I have a small problem with a PHP script with Pear DB > > The problem is the following: I'm creating a shell script in PHP that > access one interbase database. > > The problem is that if i run it on a webserver the script run correctly > but if i runit in the command line it reports one error (DB Error: > connect failed). > > Does anybody know what is the problem ? > Try outputting the "userInfo". $db = DB::connect($dsn); if (PEAR::isError($db)) { die($db->getMessage()."\n".$db->getUserInfo()."\n"); } -- paperCrane --Justin Patrin--

« previous php.pear.general (#15421) next »