douweng5420 2010-07-05 06:25
浏览 53

如何安装DB.php?

I have use 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?

  • 写回答

1条回答 默认 最新

  • dovhpmnm31216 2010-07-05 06:55
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 路易威登官网 里边的参数逆向
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏
  • ¥15 gg加速器加速游戏时,提示不是x86架构