开发者

how to install DB.php?

I have use 开发者_JS百科DB::Connect in my program for accessing the database. I ran my php program this shows the error

DB.php file is not their.

require_once 'DB.php';

PEAR::setErrorHandling(PEAR_ERROR_DIE);

Then I copy the DB.php file and PEAR.php file from another machine to my machine after that If I ran from command line it didn't through the error. while running from browser this shows error. How to solve this problem.? How to install this DB.php?


PEAR provides a command line installer that should take care of all the details:

pear install DB

Since PEAR packages are mainly PHP code, you can also copy the files manually, but you must make sure you copy everything, not only the first required file, and your script must also be able to find the files so you must add pear to the include_path PHP directive.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜