Results 1 to 2 of 2
  1. #1
    New Pligger shobhit_rastogi77's Avatar
    Joined
    Jun 2008
    Posts
    1

    php require_ones(DB.php)failed to open stream

    hi
    i just got struck on working with pear in php
    <?php

    require_once('db_login.php');
    require_once('DB.php');
    if(!isset($_SERVER['PHP_AUTH_PW'])||!isset($_SERVER['PHP_AUTH_USER']))
    {
    header('authenticate: Basic Realm="member area"');
    header("HTTP authenticate");

    echo "u must enter the pass and user";
    exit;
    }
    $password=$_SERVER['PHP_AUTH_PW'];
    $userx=$_SERVER['PHP_AUTH_USER'];
    $connection=DB::connect("mysql://$user:$pwd:@$serve/$db");
    if(DB::isError($connection)){
    die("could nt connect".DB::errormessage($result));
    }
    $query= "SELECT `user_id`,`username` FROM `users` WHERE `username`='".$userx."'AND `password`=MD5('".$password."') LIMIT 1";
    $result=$connection->query($query);
    if(DB::isError($result)){
    die("could nt query </br>".$query."".DB::errormessage($result));
    }
    if(!$row=$result->fetchrow(DB_FETCHMODE_ASSOC)){
    header('WWW authenticate: Basic Realm="member area"');
    header("HTTP unauthorized");
    echo "ur u & p rong";
    }
    echo "successfully log out"
    ?




    here at the starting require_ones(DB.php) gives error failed to open stream file
    not found
    i put the include_path in php.ini
    and install the DB package please any one can help me out

  2. #2
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    I am confused. What are you attempting to do? This is not a pligg file. Why would you list a non-pligg file under bug reports?

Similar Threads

  1. How to open the voting open in new window
    By nolieenotrue in forum Questions & Comments
    Replies: 2
    Last Post: 06-18-2011, 01:08 PM
  2. Firefox: Content-Type octet-stream
    By Lazy in forum Questions & Comments
    Replies: 3
    Last Post: 12-05-2009, 01:09 PM
  3. failed to open stream: Permission denied
    By idanshechter in forum Questions & Comments
    Replies: 1
    Last Post: 09-22-2009, 03:48 PM
  4. "failed to open dir" error due to category caching?
    By ecow in forum Questions & Comments
    Replies: 9
    Last Post: 01-29-2007, 08:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting