This page http://www.php.net/readdir will answer both of your questions (read the notes by users, too). Incidentally, you might not want to start your post with "is there a script...?" because it sounds like you are requesting a script. If so, you can post it in Script Request forum.