Skip to content

Instantly share code, notes, and snippets.

@joemccann
Created March 18, 2013 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemccann/5187360 to your computer and use it in GitHub Desktop.
Save joemccann/5187360 to your computer and use it in GitHub Desktop.
For Dustin Zahn
<?php
$dirname = "./"; // Change this to your directory; this is the current directory
$dir = opendir($dirname);
while(false != ($file = readdir($dir))){
if(($file != ".") and ($file != "..")){
echo($file);
echo("\n");
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment