<?php
// if( $entry[0] != '.' ) best for ' . ' and ' .. '
$d = dir( '.' );
echo "Pointeur : " . $d->handle . "\n";
echo "Chemin : " . $d->path . "\n";
while (false !== ($entry = $d->read())) {
if($entry[0] != '.') {
echo $entry, PHP_EOL;
}
}
$d->close();
?>