1
I’m trying to read a file TXT on the network, but the PHP always returns permission error.
The folder is shared and I can see it over the network windows.
Server use Windows with IIS7.
In the xampp local I can access these files via php 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);
Some help ?
you’ll have to give Apache permission to read this file on the network, see if it helps: http://phpbrasil.com/phorum/read.php?11,163196. If you can, share. :)
– Gustavo Carvalho