first time with pear
| From: | Pietro Cottafavi | Date: | Wed, 07 Jul 2004 15:23:46 +0000 |
| Subject: | first time with pear | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-13523@lists.php.net to get a copy of this message | ||
hi , is my first time with pear.
i'm making some tests with this script
|<?php
require_once 'DB.php';
$dsn = 'pgsql://someuser:apasswd@localhost/thedb';
$options = array(
'debug' => 2,'portability' => DB_PORTABILITY_ALL, ); $db =& DB::connect($dsn, $options); if (DB::isError($db)) { die($db->getMessage()); } // ... $db->disconnect(); ?> but i always get this error |* Fatal error*: Undefined class name 'db' in */home/alpharoot/html/pearTests/DB.php* on line *10 where is the problem ? thanks, Pietro. *