Skip to content

Instantly share code, notes, and snippets.

@mitchellbusby
Created April 20, 2012 12:20
Show Gist options
  • Save mitchellbusby/2428165 to your computer and use it in GitHub Desktop.
Save mitchellbusby/2428165 to your computer and use it in GitHub Desktop.
not implemented
<?php
$files = scandir('documents');
for ($i = 0; $i<count($files); $i++) {
echo '<div class="document"><a href="documents/' . $files[$i] . '">'. str_replace('.docx', '', $files[$i]) . '</a></div>';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment