我正在尝试使用PHP和WAMP访问网络驱动器上的文件,但我遇到了困难。
以下是我尝试过的一些相关信息:
我在许多变体中尝试过以下内容(共享名称,共享名称和文本文件),这里有一些:
$h = opendir('\\\\ip address'); error: opendir(\\ip address,\\ip address): The specified path is invalid. (code: 161)
$h = opendir('\\ip address'); error: opendir(\ip address,\ip address): The specified path is invalid. (code: 161)
$h = opendir('U:/'); error: opendir(U:/,U:/): The system cannot find the path specified. (code: 3)
$h = opendir('U:/Share Name'); (the share name contains a space) error: opendir(U:/Share Name,U:/Share Nane): The system cannot find the path specified. (code: 3)
$h = is_dir("\\\\ECHO"); error: opendir(\\ECHO,\\ECHO): The specified path is invalid. (code: 161)
$h = opendir("\\ECHO");opendir(\ECHO,\ECHO): The system cannot find the file specified. (code: 2)
$h = opendir("\\ECHO\\Share Name\\test.txt"); opendir(\ECHO\Share Name\test.txt,\ECHO\Share Name\test.txt): The system cannot find the path specified. (code: 3)
这是以本地系统帐户登录的wampapache64。如果我将wampapache64的登录凭据更改为我的用户凭据,则会发生相同的消息。
我的用户帐户可以添加/删除/修改网络驱动器中的文件以及我的网络驱动器共享。
这个问题让我很难过,我不知道还能做些什么。有什么建议吗?