Last active
April 27, 2020 19:32
-
-
Save dan-lind/df410c3712b9516bf5fcc205555a6830 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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