Skip to content

Instantly share code, notes, and snippets.

@geografa
Created February 28, 2011 19:51
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 geografa/847901 to your computer and use it in GitHub Desktop.
Save geografa/847901 to your computer and use it in GitHub Desktop.
scans a specified directory and echos the results in a clickable list.
$dir = scandir("review");
$result = count($dir);
$i=3;
while($i<=$result) {
echo "<a href='/folder/to/be/crawled/$dir[$i]'>" . $dir[$i] . "</a><br />";
$i++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment