David wrote: > hi > I want to use the DB.php to access mysql database, so I add the following line to my > file: > require_once 'DB.php';
Is "my file" the file referenced in the error message below? Namely, D:\Apache2\htdocs\dunj\test\member\connectDatabase.php. I'm guessing the message "No such file or directory" probably came from the operating system. Naively, I would say it means you're wrong about the existence of d:\php\PEAR\DB.php, but I suppose it's possible that the OS might give the same message if the webserver didn't have permissions to read d:\ or d:\php or d:\php\PEAR, etc. Good luck. Travis > > but I get the following error info: > Warning: main(DB.php): failed to open stream: No such file or directory in > D:\Apache2\htdocs\dunj\test\member\connectDatabase.php on line 2 > > Fatal error: main(): Failed opening required 'DB.php' (include_path='.;d:\php\PEAR') > in D:\Apache2\htdocs\dunj\test\member\connectDatabase.php on line 2 > > what happened? > i am convinced that the DB.php exists under the directory 'd:\php\PEAR'. > > ============================ > David Oilfield > China Lottery Online Co. Ltd. > Email:[EMAIL PROTECTED] > Mobile:13521805655 > Phone:010-83557528-263 > ============================ -- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php