Help - Search - Members - Calendar
Full Version: Db.php Missing?
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
Banu
I've set up login code from a tutorial but I don't know what to do for the DB.php file. I'm using phpMyAdmin for the database, but I seriously have no clue what to put for the DB.php that seems to be needed.

I continue getting this error:

Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\db_connect.php on line 5
Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.;C:\php5\pear') in C:\wamp\www\db_connect.php on line 5

Line 5 of my code is
require_once 'DB.php';
If I make a blank DB.php file it gives a different error.

I'm seriously confused on what DB.php is supposed to do blink.gif
swordz
It's supposed to connect to the database. I suggest going back to where you got this script from and asking for it.

swordz
Ed
My guess is that it is PEAR's DB you're missing: http://pear.php.net/package/DB
MrTouz
shouldn't it hold all database information ?

HOSTNAME
DATABASENAME
USERNAME
PASSWORD

?
uncled1023
yes, the DB is in the PEAR system. Zymic does nto have it, along with most free sites. there are some though.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.