When PHP accesses the shared file on another computer (windows7) in the LAN: file_get_contents (& #039; \ 192.168.1.99 \ log $ \ log.txt & #039;), it prompts that the access is denied, but it can be accessed directly in the resource manager. However, another computer can access it through PHP. Php version 5.4.18... PHP accesses the shared file on another computer (windows7) in the LAN: file_get_contents ('\\\\ 192.168.1.99 \ log $ \ log.txt'), prompting that the access is denied, but it can be accessed directly in the resource manager. However, another computer can access it through PHP.
Php version 5.4.18
The same applies to network ing. PHP cannot be accessed and can be accessed directly in the resource manager.
Message: file_get_contents (\ 192.168.1.99 \ callLog $ \ 20130128.txt) [function. file-get-contents]: failed to open stream: Permission denied
Reply content:
PHP accesses the shared file on another computer (windows7) in the LAN: file_get_contents ('\\\\ 192.168.1.99 \ log $ \ log.txt'), prompting that the access is denied, but it can be accessed directly in the resource manager. However, another computer can access it through PHP.
Php version 5.4.18
The same applies to network ing. PHP cannot be accessed and can be accessed directly in the resource manager.
Message: file_get_contents (\ 192.168.1.99 \ callLog $ \ 20130128.txt) [function. file-get-contents]: failed to open stream: Permission denied
Directly access @ file_get_contents ($ filename );
$ Filename = 192.168.1.99/log/log.txt
Yes.
Prompt Permission denied, Permission problem, the landlord said another computer php can access, then check whether the running script Permission can access that shared resource.
It has been solved. You can do a network ing and then access the source address, but you cannot access the mapped path. I don't know why.