I'm using the code below to try to read the files in a directory.
$dir = "\\192.168.44.19\Controles\Inventario de Equipamentos\A\ " ;
$pasta= opendir($dir);
echo("<li data-role='list-divider'><a href='#'>B</a></li>");
while ($arquivo = readdir($pasta)){
if ($arquivo != '.' && $arquivo != '..'){
echo "<li><a href='".$dir.$arquivo."' rel='external' >".$arquivo."</a></li>";
}
}
But I get the error message:
Access is denied. (code: 5) in C: \ wamp \ www \ terms \ index.php on line 30