New to PEAR

    Date: 11/22/06 (PHP Community)    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/513026.html

« mysql_affected_rows error || Out of State Clients and... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home