Re: PEAR DB Error??

From: Date: Tue, 22 Jul 2003 14:10:22 +0000
Subject: Re: PEAR DB Error??
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6719@lists.php.net to get a copy of this message
On Tuesday 22 July 2003 11:44, Graham Clarke wrote: > Does anyone have some insight into what causes this warning? I've > included the code from PEAR/DB.php w/ line numbers below. > > cheers > Graham > > error number: 2 (E_WARNING) > error message: Failed opening 'DB/3.php' for inclusion > in file: /usr/share/pear/DB.php > line num: 278 > > > line in PEAR/DB.php > 264 > function &connect($dsn, $options = false) > { > if (is_array($dsn)) { > $dsninfo = $dsn; > } else { > $dsninfo = DB::parseDSN($dsn); > 270 > } > $type = $dsninfo["phptype"]; > > if (is_array($options) && isset($options["debug"]) > && $options["debug"] >= 2) { > 275 > // expose php errors with sufficient debug level > include_once "DB/${type}.php"; > } else { > 278 > @include_once "DB/${type}.php"; > } > > > Graham Clarke > GrahamC@53Tech.com > www.53Tech.com > 603.643.9955 Something is probably amiss in your code, specifically in the definition of $dsn. Could you provide a snippet of the code you wrote that calls the DB:: connect function? -- James 'Chip' Kaufman jkaufman@wamnet.com 651-256-5137 PGP key: 697D43DE

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