Pear 已安装,但不工作

发布于 2024-12-09 02:22:52 字数 449 浏览 0 评论 0原文

我终于让 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扬花落满肩 2024-12-16 02:22:52

有点随机猜测,尝试 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文