Questo è il codice:
<?php
$dir = "images";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo $file . "
";
}
closedir($dh);
}
}
else
echo "errore";
?>
l'output è:
.
..
file1.jpg
file2.jpg
Non ho capito cosa sono i puntini....
grazie