Re: PEAR DB Error

From: Date: Mon, 23 Apr 2001 20:19:12 +0000
Subject: Re: PEAR DB Error
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-73@lists.php.net to get a copy of this message
Chris Mulcahy wrote: > > Hmm. Replying to my own message. > > On reading through the archives, I found this tidbit. > $dbh = DB::connect($dsn, array("debug" => 2)); > in a message from Stig Sæther Bakken > > On adding the debug level 2, I get: > Warning: Failed opening 'DB/dsn.php' for inclusion > (include_path='/usr/local/lib/php/pear') in DB.php on line 230 This error can only occur when you supply to connect, something like: $dsn = 'dsn://blah'; $db = DB::connect($dsn); Perhaps you are doing: $dsn = 'mysql://blah'; $db = DB::connect(dsn); // <-- without '$' Please check that. If not, please be more verbose and paste the exactly code that is given problems (always use the last CVS version and php >= 4.0.4). Tomas V.V.Cox

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