php require_ones(DB.php)failed to open stream
-
New Pligger
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
-
Pligg Developer
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
-
By nolieenotrue in forum Questions & Comments
Replies: 2
Last Post: 06-18-2011, 01:08 PM
-
By Lazy in forum Questions & Comments
Replies: 3
Last Post: 12-05-2009, 01:09 PM
-
By idanshechter in forum Questions & Comments
Replies: 1
Last Post: 09-22-2009, 03:48 PM
-
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
-
Forum Rules