I try to read a TXT
file on the network, but PHP
always returns permission error.
The folder is shared and I can see it through the windows
network.
Server use Windows
with IIS7
.
In% local% I can access these files via xampp
normal.
ini_set('display_errors',1);
error_reporting(E_ALL);
$ponteiro = fopen ("//192.168.1.2\DADOSTXT\arquivo.TXT","r") or die("ERRO");
while(!feof($ponteiro)){
$linha = fgets($ponteiro,4096);
echo $linha."<br>";
}
fclose ($ponteiro);
Any help?