I am trying to make a folder with mkdir, it will work as expected on a local drive, but it will fail with No such file or directory if I use a mapped network drive. I ran into this a year or so ago, and solved it with some net use trickery, but can't remember what it was.
An example command: mkdir("Z:\\Mydir\\Subdir\\", 0777, true), this fails. But mkdir("C:\\Mydir\\Subdir\\", 0777, true) is successful.The permissions on the network drive are wide open for testing, and any user can create directories.
If I create a symlink for C:\Mydir\ to Z:\Mydir\ and use mkdir("C:\\Mydir\\Subdir\\", 0777, true) it instead throws an Invalid arguments exception.
Why does phps mkdir not seem to function correctly on mapped network drives?