Created
March 18, 2013 14:04
-
-
Save joemccann/5187360 to your computer and use it in GitHub Desktop.
For Dustin Zahn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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