【发布时间】:2014-09-21 01:05:42
【问题描述】:
我正在开发一个 php 项目,其中特定功能必须访问从外部目录存储的文件:网络附加存储(linux)。假设路径是 /volume1/accounts,它安装在我的站点使用 apache 托管的 linux 服务器中。我将不得不从该目录中检索文件。 PHP中有没有办法做到这一点?我的客户说它已经挂载了。
无论我做什么,我都无法使用这些测试代码访问
print "<pre>".print_r(scandir("/volume1/accounts/"), true)."</pre>";
print "<pre>".print_r(scandir("192.168.0.233/volume1/accounts"), true)."</pre>";
print "<pre>".print_r(scandir("192.168.0.233:/volume1/accounts"), true)."</pre>";
我应该怎么做?请帮帮我。
【问题讨论】:
标签: linux file networking nas