Re: why i could not use DB.php?

From: Date: Wed, 19 May 2004 04:34:31 +0000
Subject: Re: why i could not use DB.php?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186510@lists.php.net to get a copy of this message
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:dnj_2003@163.com > Mobile:13521805655 > Phone:010-83557528-263 > ============================ -- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>

« previous php.general (#186510) next »