Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $files_dir = "./tests";
- $files_list = scandir($files_dir);
- echo '<ol>';
- foreach ($files_list as $value)
- {
- if ($value !='.' and $value !='..' )
- {echo '<li><a href="./tests'. $value.'">'.$value.'</a></li><br>';}
- else{}
- }
- echo '</ol>';
- ?>
Add Comment
Please, Sign In to add comment