$d = dir("./archive/"); while($entry=$d->read()) { if (!strstr($entry,".htaccess") && $entry!="." && $entry!="..") {echo "".$entry."\n";} } $d->close(); ?>