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. Link to comment https://forums.phpfreaks.com/topic/26985-dbphp/ 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 Link to comment https://forums.phpfreaks.com/topic/26985-dbphp/#findComment-123371 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. Link to comment https://forums.phpfreaks.com/topic/26985-dbphp/#findComment-123385 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? Link to comment https://forums.phpfreaks.com/topic/26985-dbphp/#findComment-123395 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');?> Link to comment https://forums.phpfreaks.com/topic/26985-dbphp/#findComment-123399 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. Link to comment https://forums.phpfreaks.com/topic/26985-dbphp/#findComment-123435 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. Link to comment https://forums.phpfreaks.com/topic/26985-dbphp/#findComment-123436 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. Link to comment https://forums.phpfreaks.com/topic/26985-dbphp/#findComment-123440 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.