Problem of connection

From: Date: Wed, 20 Nov 2002 11:19:39 +0000
Subject: Problem of connection
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2767@lists.php.net to get a copy of this message
First hi to all, and sorry for my english i write from italy. I have make internet site with Php, Mysql, Pear and smarty, in localhost, on my mac os x, and windows xp goes all good, i have put it in internet, by my provider on linux system and on the same root i have put the folder DB and PEAR and don't goes. Make nothing, no errors only a white page, so i have make a littel test with a littel file this: ---------------------------------------------------------------------- <?php include 'DB/DB.php'; $user = 'nome_user'; $pass = 'password'; $host = 'localhost'; $db_name = 'nome_db'; echo "prima della connessione<br>"; $dsn = "mysql://$user:$pass@$host/$db_name"; echo $dsn; $db = DB::connect($dsn, true); echo $db,"connessione effetuata"; if (DB::isError($db)) {
    die ($db->getMessage());
} $db->disconnect(); echo "disconnessione effetuata"; ?> ------------------------------------------------------------------- This is my result page: prima della connessione mysql://nome_user:password@localhost/nome_db so when arrive to the connection make nothing more, the connection don't goes but why i get not errors? Somebody can help me? PLEASE i start to become crazy! I think depende of the configuration of PHP on the server, and i have understand that non depende from smarty because with a normal template without connection on db goes all good. GRAZIE milo

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