$exceptions=array('.','..','index.php');
$sourcedir=@opendir('.');
if ($sourcedir)
{
echo 'FILEs PUBBLICI
';
while(false!==($sibling=readdir($sourcedir)))
{
if(!in_array($sibling,$exceptions))
{
$s = "- $sibling
";
echo $s;
}
}
closedir($sourcedir);
echo '
';
}
?>