RE: [PEAR] A call to DB::connect(--) Never Returns
| From: | LIMBOURG Arnaud | Date: | Mon, 27 Jan 2003 13:49:15 +0000 |
| Subject: | RE: [PEAR] A call to DB::connect(--) Never Returns | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3475@lists.php.net to get a copy of this message | ||
> print "Before call";
> $dbh =
> DB::connect('testDB://scott:tiger@localhost/SITE_SESSIONS, true);
Hem, you should have a quick look at the doc to see how to write a valid
dsn. There is also a missing ' ??
DB::connect('mysql://scott:tiger@localhost/SITE_SESSIONS', true);
> print "After call";
> if (!$dbh) {
> die(sprintf('Error [%d]: %s', $dbh->getCode,
> $dbh->getMessage()));
> }
>
> Only the "Before call" comes back leading me to believe DB:connect(--)
> somehow just got lost.
>
> I did have to change the name of PEAR.php.in to PEAR.php
> before I could even
> get to first base if that makes a difference.
>
> TIA............Louis Abeyta
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>