Board index   FAQ   Search  
Register  Login
Board index PHP PEAR and PECL

test Pear

Do you have questions regarding Pecl or Pear? ask here!

Moderators: macek, egami, gesf

test Pear

Postby southriver » Tue Jul 19, 2005 1:00 am

hi all

I just installed pear in testing directory by go_pear.php.
I started testing the program but the result was returned the empty page.

Code: Select all
<?php

require_once 'PEAR/DB.php';
$user = 'root';
$pass = 'root';
$host = 'localhost';
$db_name = 'test';

// Data Source Name
$dsn = "mysql://$user:$pass@$host/$db_name";

$db = DB::connect($dsn);

if (DB::isError($db)) {
        die ($db->getMessage());
} else {
      echo 'Connected successfully';
}

$db->disconnect();
?>


please explain me

thanks

best regards
User avatar
southriver
New php-forum User
New php-forum User
 
Posts: 51
Joined: Sun May 29, 2005 8:31 pm

Return to PEAR and PECL

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.