/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function list_files($dir) { { { { if($file != "." && $file != ".." && $file != "Thumbs.db") { echo '<a target="_blank" href="'.$dir.$file.'">'.$file.'</a><br>'."\n"; } } } } }
URL: http://webdeveloperplus.com/php/21-really-useful-handy-php-code-snippets/