New to PEAR
Date: 11/22/06
(PHP Development) Keywords: php, mysql, software, sql, apache
Hi all
am Pretty new to using PEAR, facing some pbms here lately ,
I ve installed pear with the following setup : windows /apache 2/mysql /php5
now while execute the following code :
require_once('DB.php');
$db_host='localhost';
$db_database='somedb';
$db_username='someuser';
$db_password='somepwd';
$query='select * from employee';
$dsn = "mysql://$db_username:$db_password@@db_host/$db_database";
/$db = DB::connect($dsn);
?>
I am getting the following error :
"Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\pear.php on line 3
Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='C:\PHP\pear') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\pear.php on line 3"
please let me know how to fix this.thx alot.
Praveen.
Source: http://community.livejournal.com/php_dev/74476.html