문제

What I am trying to do is read and write from a shared folder on a network. The .php is something like fopen(\\\\server\\share\\file.txt, "r"), but my problem is I dont know what name to supply for the server name.

Can I use the IP address as the server name?

Or is the server name what I have circled in red? enter image description here

도움이 되었습니까?

해결책

You can use the ip. Whatever format works with windows explorer (given that you add any needed extra backslashes that are used for escaping) should work with php, too.

다른 팁

On windows that would be:

fopen("\\\\server\\share\\file.txt", "r");

(you must use quotes)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top