Skip to content

Instantly share code, notes, and snippets.

@robbestad
Created June 30, 2013 20:17
Show Gist options
  • Save robbestad/5896692 to your computer and use it in GitHub Desktop.
Save robbestad/5896692 to your computer and use it in GitHub Desktop.
Linked list of files with PHP
<ol>
<?php
$dir = "*";
foreach(glob($dir) as $file)
{
?>
<li><p><a href='<?=$file?>'><?=basename($file)?></a></p></li>
<?php
}
?>
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment