Skip to content

Instantly share code, notes, and snippets.

@dan-lind
Last active April 27, 2020 19:32
Show Gist options
  • Save dan-lind/df410c3712b9516bf5fcc205555a6830 to your computer and use it in GitHub Desktop.
Save dan-lind/df410c3712b9516bf5fcc205555a6830 to your computer and use it in GitHub Desktop.
<?php
$dir = "/tmp";
$dh = opendir($dir);
while(false !== ($filename = readdir($dh)))
{
echo $filename . ' <a href="' . $dir . '/' . $filename . '">view</a>';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment