Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function list_files($dir)
- {
- if(is_dir($dir))
- {
- if($handle = opendir($dir))
- {
- while(($file = readdir($handle)) !== false)
- {
- if($file != "." && $file != ".." && $file != "Thumbs.db")
- {
- echo '<a target="_blank" href="'.$dir.$file.'">'.$file.'</a><br>'."\n";
- }
- }
- closedir($handle);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement