Skip to content

Instantly share code, notes, and snippets.

@Schubidu
Created October 17, 2012 06:57
Show Gist options
  • Save Schubidu/3904103 to your computer and use it in GitHub Desktop.
Save Schubidu/3904103 to your computer and use it in GitHub Desktop.
list all html-files in current directory
<?php
foreach(glob("*.html") as $page){
echo '<li><a href="' . $page . '">' . $page . '</a></li>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment