无论如何使用终端来找到这个文件?
我在终端上使用以下命令下载并安装了 PEAR Auth 包,
/Applications/MAMP/bin/php5/bin/pear install Auth
我确认它已安装,但是当我在运行的程序中执行 require_once('Auth.php')
时,我收到一条错误消息,指出它未能包含在内。
当我在目录中查找 auth.php 时,我在任何地方都看不到它,但是,正如我所说,我确认它尚未安装。
a) 因为 PEAr 是随 MAMP 一起安装的,所以我的印象是 Pear auth.php 会自动与 PHP 同步,这样我就不必构建文件路径。这是正确的吗?
b) 是否有可以在终端中输入的代码来查找 auth.php 的文件路径?假设已经安装了...
I downloaded and installed PEAR Auth package using the following on my terminal
/Applications/MAMP/bin/php5/bin/pear install Auth
I got confirmation that it is installed, but when I do a require_once('Auth.php')
in the program I am running I'm getting an error message that it failed to include.
When I look in the directory for the auth.php, I can't see it anywhere, but, as I said, I have confirmation it's not installed.
a) because PEAr comes installed with MAMP, I was under the impression that Pear auth.php woulded sync automatically with PHP so that I don't have to build a file path. Is that correct?
b) Is there code that I can enter into the Terminal to find out the file path of auth.php? assuming that it's installed...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这应该显示该文件是否存在于安装目录中。
问候
This should show you if that file exists in the installation directory.
Regards
您可以使用
这会列出与该名称匹配的文件的所有位置。
You could use
This would list all the locations of files matching this name..