Mapped Network Drives

前端 未结 3 1414
独厮守ぢ
独厮守ぢ 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 22:57

    simple, use: "\\\\server\\dir\\subfolder" as the path. make sure you can access the "server".

    works for me.
    $arquivo = "\\\\server\\dir\\subfolder\\file.txt"; echo is_file($arquivo); //print 1.

提交回复
热议问题