DB Connection - DEBUG

From: Date: Mon, 15 Sep 2003 18:02:20 +0000
Subject: DB Connection - DEBUG
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7820@lists.php.net to get a copy of this message
Hello, I'm trying to use the DB package. But I cannot get connection. How can I debug this?? I used the following code: require_once './PEAR/DB.php'; PEAR::setErrorHandling(PEAR_ERROR_DIE); $db_host = 'localhost.xinix.net'; $db_user = 'lalala'; $db_pass = 'xxx'; $db_name = 'xinix_net_-_main'; $dsn = "mysql://$db_user:$db_pass@unix+$db_host/$db_name"; printf("Connect to DB "); $db = DB::connect($dsn); printf("-> Connection madeBR>"); $db->setFetchMode(DB_FETCHMODE_OBJECT); return $db; The second printf statment is never done?? How can that be? Thx Roel

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