Pear 已安装,但不工作
我终于让 Pear 通过 Pear2 系统运行了,但我猜我的路径似乎搞砸了。我试图在我正在做的教程中包含 HTML_Tables,但它表明它不存在。 我最初尝试在 php bin 中设置 pear(它仍然存在),但后来通过 Pear2 我将其设置在 wamp/www/pear 中。它已安装并显示在命令行中,但使用它来包含软件包时,路径似乎已关闭。
Failed opening required 'HTML/Table.php' (include_path='.;c:\php\includes:c:\wamp\Zend;.;C:\wamp\bin\php\php5.3.4\PEAR') in C:\wamp\www\php-site-training\cars_table.php on line 5
--哦,我的意思是提到我手动更新了路径,以显示 wamp 设置,但错误仍然显示 phpbin,如上所示。
I have finally got Pear running through the Pear2 system, but my path seems to be screwed up, I guess. I am trying to include HTML_Tables for a tutorial I am doing, and it shows that it's not there.
I originally tried to setup pear in the php bin, (it's still there), but then through the Pear2 I set it up in wamp/www/pear. It installed and shows up in the command line, but using it to include packages, it appears the path is off.
Failed opening required 'HTML/Table.php' (include_path='.;c:\php\includes:c:\wamp\Zend;.;C:\wamp\bin\php\php5.3.4\PEAR') in C:\wamp\www\php-site-training\cars_table.php on line 5
--oh, I meant to mention that I manually updated the path, to show the wamp settings, but the error still shows the phpbin, as shown above.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有点随机猜测,尝试
require 'PEAR/HTML/Table.php';
我对您看到的实际错误是什么感到有点困惑,而且我并不完全明白确定您的 php 配置是什么,或者您实际安装了 PEAR 的位置。至于PEAR有多重要,那就要看情况了。它有一些有用的工具,但我认为这些工具的一些功能最终出现在各种框架中。然而,PEAR 中的一些工具和库非常有用。一般来说,如果 PEAR 库可以帮助您做某事,那么就值得设置它,否则,可能不值得。
A bit of a random guess, try
require 'PEAR/HTML/Table.php';
I'm kind of confused as to what the actual error you're seeing is, and I'm not entirely sure of what you're php configuration is, or where you actually have PEAR installed.As for how important PEAR is, it depends. It has some useful tools, but I think some of the functionality of those tools ended up in the various frameworks. However, some of the tools and libraries in PEAR are quite useful. In general, if a PEAR library will help you do something, it's worth setting it up, otherwise, it might not be worth it.