Again PEAR problem of connection

From: Date: Wed, 20 Nov 2002 14:39:05 +0000
Subject: Again PEAR problem of connection
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2773@lists.php.net to get a copy of this message
Ok i have put DB inside PEAR like your example, but with this simple script don't goes again: <?php ini_set('include_path',':./PEAR:./PEAR/DB'); // and this ini_set('include_path','./PEAR'); $user = 'nome_user'; $pass = 'password'; $host = 'localhost'; $db_name = 'nome_db'; echo "prima della connesione<br>"; $dsn = "mysql://$user:$pass@$host/$db_name"; echo $dsn; $db = DB::connect($dsn, true); echo $db,"connesione effetuata"; if (DB::isError($db)) {
    die ($db->getMessage());
} $db->disconnect(); echo "disconnesione effetuata"; ?> This is my resul page: prima della connesione mysql://nome_user:password@localhost/nome_db and nothing more. WHY? i haven't access to phpinfo for the security of the server, and i don't know again the version of PHP i wait the aswerd from the server administrator.

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