When i use php read file on LAN network through ip or computer name.
$url = "\\\\192.168.0.200\\testshare\\1.txt";
if(file_exists($url) == TRUE) {
echo "OK";
} else {
echo "Error";
}
result: always "Error". If i use function file_get_contents ($url , true); result:
Warning: file_get_contents(\\192.168.0.200\testshare\1.txt) [function.file-get-contents]: failed to open stream: Permission denied in D:\services\htdocs\test.php on line 3
Of course, folder "testshare" is set share and permission everyone full control. If i tape web browser: \192.168.0.200\testshare\1.txt It read content of file 1.txt. Can you help me? Every idea help me, i thanks very much.