使用WAMP和PHP访问网络驱动器上的文件

使用WAMP和PHP访问网络驱动器上的文件,php,apache,laravel,wamp,network-drive,Php,Apache,Laravel,Wamp,Network Drive,我试图使用PHP和WAMP访问网络驱动器上的文件,但遇到了困难 以下是有关我尝试过的一些信息: 映射到:U: UNC:\\ECHO 我尝试了以下多种变体(使用共享名、共享名和文本文件),以下是一些: $h = opendir('\\\\ip address'); error: opendir(\\ip address,\\ip address): The specified path is invalid. (code: 161) $h = opendir('\\ip address');

我试图使用PHP和WAMP访问网络驱动器上的文件,但遇到了困难

以下是有关我尝试过的一些信息:

  • 映射到:U:
  • UNC:\\ECHO
我尝试了以下多种变体(使用共享名、共享名和文本文件),以下是一些:

$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的登录凭据更改为我的用户凭据,则会出现相同的消息

我的用户帐户可以从网络驱动器以及我的网络驱动器共享中添加/删除/修改文件

这个问题把我难住了,我不知道还能做什么。有什么建议吗