shirvo Posted November 12, 2006 Share Posted November 12, 2006 Where do i get a DB.php fiel from. Or what the hell goes into a DB.php file. can someone please help. I have PERL i just need to know how to make a DB.php file. Quote Link to comment Share on other sites More sharing options...
extrovertive Posted November 12, 2006 Share Posted November 12, 2006 http://pear.php.nethttp://www.onlamp.com/pub/a/php/2001/11/29/peardb.html Quote Link to comment Share on other sites More sharing options...
shirvo Posted November 12, 2006 Author Share Posted November 12, 2006 This didn't really help me with writing the DB.php file. it showed me how to send data to it. bbut not make the DB.php file. PLEASE help someone. Quote Link to comment Share on other sites More sharing options...
trq Posted November 12, 2006 Share Posted November 12, 2006 Sorry, but your question is VERY vague. What do you want in this DB.php file? Quote Link to comment Share on other sites More sharing options...
shirvo Posted November 12, 2006 Author Share Posted November 12, 2006 This is the file that calls it. So i need the DB.php file to work around this<?phprequire_once 'DB.php';$db_engine = 'mysql';$db_user = 'root';$db_pass = 'temp';$db_host = 'localhost';$db_name = 'logindata';$datasource = $db_engine.'://'. $db_user.':'. $db_pass.'@'. $db_host.'/'. $db_name;$db_object = DB::connect($datasource, TRUE);if(DB::isError($db_object)) { die($db_object->getMessage());}$db_object->setFetchMode(DB_FETCHMODE_ASSOC);include('check_login.php');?> Quote Link to comment Share on other sites More sharing options...
trq Posted November 12, 2006 Share Posted November 12, 2006 As has been suggested, it looks like you need the pear DB package installed. Quote Link to comment Share on other sites More sharing options...
shirvo Posted November 12, 2006 Author Share Posted November 12, 2006 Ok well how do i get it and how do i install it. Quote Link to comment Share on other sites More sharing options...
trq Posted November 12, 2006 Share Posted November 12, 2006 Go [url=http://pear.php.net]here[/url] and read. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.