Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $path = './';
- $files = scandir($path);
- $files = array_diff(scandir($path), array('.', '..'));
- ?>
- <h1>List of system files available in the site:</h1>
- <?php
- foreach($files as $file){
- echo '<a href="' . $file . '" download>' . $file . '</a>';
- ?>
- <br>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement