PHP-PEAR require_once('DB.php'); [英] PHP-PEAR require_once('DB.php');
本文介绍了PHP-PEAR require_once('DB.php');的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用 PEAR (PHP) 时遇到问题.这是错误:
I've a problem with PEAR (PHP). This is the error:
Warning: require_once(DB.php): failed to open stream: No such file or directory in /WWW/xxx.php on line 2
Fatal error: require_once(): Failed opening required 'DB.php' (include_path='.:/usr/share/php:/usr/share/pear') in /WWW/xxx.php on line 2
我已经安装了 PEAR(版本 1.9.0)在我的 PHP 文件中,前两行是:
I've already installed PEAR (version 1.9.0) In my PHP file the first two lines are these:
1- <?php
2- require_once('DB.php');
问题出在哪里?谢谢大家!
Where's the problem? Thank you all!
推荐答案
您需要安装模块:
pear install DB
尽管 此页面 给出了有关此包被取代的警告(不是em> 已弃用)由 MDB2 提供.
Although this page gives a warning about this package being superseded (not deprecated) by MDB2.
这篇关于PHP-PEAR require_once('DB.php');的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文