$path = "//10.100.2.140/MyShare/test.txt";
var_dump(file_get_contents($path));
It can be accessed under Windows environment, no problem. However, it cannot be accessed under Linux, and it prompts failed to open stream: No such file or directory. The final shared directory is on another Windows machine. I tested the shared directory under Linux in the running environment that Windows can access it but Linux cannot.
$path = "//10.100.2.140/MyShare/test.txt";
var_dump(file_get_contents($path));
It can be accessed under Windows environment, no problem. However, it cannot be accessed under Linux, and it prompts failed to open stream: No such file or directory. The final shared directory is on another Windows machine. I tested the shared directory under Linux in the running environment that Windows can access it but Linux cannot.
This kind of Windows shared LAN address is unique to Windows
If you want to access a Windows share in Linux, you need to mount the directory first. Find out how to use samba
(Also, if the real file is already on this machine, why not directly access the local directory)
Check the path and permission issues first
//machine name or ip/share name/path/file name