Skip to content

Instantly share code, notes, and snippets.

@mikedugan
Created November 7, 2013 14:48
Show Gist options
  • Select an option

  • Save mikedugan/7355787 to your computer and use it in GitHub Desktop.

Select an option

Save mikedugan/7355787 to your computer and use it in GitHub Desktop.
lists all files in a dir
<?php
$dir = "./uploads/post-templates";
$files = scandir($dir);
while($files[0] == "." || $files[0] == "..") {
array_shift($files);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment