Mapped Network Drives

前端 未结 3 1417
独厮守ぢ
独厮守ぢ 2020-12-11 22:16

I have mapped a network drive to a computer in my home network. Now I am trying to access it via PHP - I did this quick test:

echo opendir(\'Z:\\\\\');
         


        
3条回答
  •  庸人自扰
    2020-12-11 23:14

    The User Contributed Notes to opendir() have this:

    I was trying to access network drives using this opendir function. I read so many posts saying that it was almost impossible to access a network drive and finally, I found the answer; there are 2 steps to be followed to access a network drive with PHP either on the same machine or another machine.

    in this case, the user rights seemed indeed to be the problem, which can be different from your rights depending on what user PHP / the web server are running on.

提交回复
热议问题