I have found similar questions but the result didn't help me. I need to access - read, write, list files and dirs on computer in local network but php is not able to find or read it. I use this code
$scandir = scandir("//192.168.101.22/somedir"); //returns false
And errors I got:
scandir(): (errno 2): No such file or directory
scandir(//192.168.101.22/somedir): failed to open dir: No such file or directory
I shared this folder on LAN computer with full access for Everyone. When I open this location in Total Commander, there is no problem. Also I created a shared folder on the computer where PHP is located and PHP found this folder. I tried to use backslashes or file:
, nothing helped me.
PHP version: 5.4.16
Wamp server 2.4
Windows 8.1 (where WAMP is located)
Windos 7 pro (computer on LAN)