Skip to content

Instantly share code, notes, and snippets.

@kwylez
Created February 3, 2011 16:14
Show Gist options
  • Save kwylez/809697 to your computer and use it in GitHub Desktop.
Save kwylez/809697 to your computer and use it in GitHub Desktop.
<?php
foreach (new DirectoryIterator('./') as $fileInfo) {
if($fileInfo->isDot()) continue;
echo $fileInfo->getFilename() . "<br>\n";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment