getting problem to use pear
Posted: Sun Sep 03, 2006 2:49 pm
feyd | Please use
to connet with db it showing the error
Thanks in advance.

feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi,
Here i am facing problem to use pear in windows environment. I have followed the steps to install pear in windows environment which is given in net . After when i check with example :Code: Select all
<?php
require_once 'DB.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$db_host = 'localhost';
$db_user = ‘*********’;
$db_pass = ‘*********’;
$db_name = ‘********’;
$dsn = "mysql;//$db_user:$db_pass@unix+$db_host/$db_name";
$db = DB::connect($dsn);
$db->setFetchMode(DB_FETCHMODE_OBJECT);
?>Code: Select all
Warning: main(DB.php) [function.main]: failed to open stream: No such file or directory in d:\wamp\www\PEAR\untitled-1.php on line 2
Fatal error: main() [function.require]: Failed opening required 'DB.php' (include_path='d:\php\includes;D:\php\PEAR') in d:\wamp\www\PEAR\untitled-1.php on line 2feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]