I have created the following file
<?php
require_once 'DB.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$db_host = 'localhost';
$db_user = 'user'; // demo purposes
$db_pass = 'password'; // demo purposes
$db_name = 'name'; // demo purposes
$dsn = "mysql://$db_user:$db_pass@unix+$db_host/$db_name";
$db = DB::connect($dsn);
$db->setFetchMode(DB_FETCHMODE_OBJECT);
?>
However when I attempt to invoke the file i get the following....
Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\pear_test\index.php on line 3
Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.;C:\wamp\php\pear') in C:\wamp\www\pear_test\index.php on line 3
Any ideas?