Re: DB.php
| From: | (Stig Sæther Bakken) | Date: | Mon, 16 Apr 2001 21:11:16 +0000 |
| Subject: | Re: DB.php | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-66@lists.php.net to get a copy of this message | ||
DB_mysql was broken for a few hours a couple of days ago, so that may
be why. It bailed silently because there were supressed parse errors
in DB/mysql.php, so I changed DB::connect to check for a "debug"
option and not supress errors if it is set to 2 or more. This is not
a feature you would normally use, but here's how to in case it happens
again:
$dbh = DB::connect($dsn, array("debug" => 2));
- Stig
[Monte Ohrt <monte@ispi.net>]
> I updated my pear repository, it must have been old enough to cause
> problems, it seems to be returning errors now instead of bailing
> silently.
>
> Colin Viebrock wrote:
> >
> > > I saw that tutorial. It doesn't show how to include the classes, the
> > > examples are just plain broken.
> >
> > The only thing missing from the examples is:
> >
> > require_once('DB.php');
> >
> > You shouldn't need to explicitly require each class (unless, perhaps, you
> > have a very odd include_path set up in your php.ini file).
> >
> > - Colin
>
> --
> Monte Ohrt <monte@ispi.net>
> http://www.ispi.net/
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, e-mail: pear-general-unsubscribe@lists.php.net
> For additional commands, e-mail: pear-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
Stig Sæther Bakken <ssb@fast.no>
Fast Search & Transfer ASA, Trondheim, Norway