Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="ru">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Document</title>
- </head>
- <body>
- <?php
- $d=dir("files");
- while ($entry = $d->read()) {
- if(($entry!=".")&&($entry!="..")){
- echo "<a href='files/$entry'>$entry</a><br>\n";
- }
- }
- $d->close();
- ?>
- <form action="copy.php" method="post" enctype="multipart/form-data">
- <input name="file" type="file">
- <input name="submit" type="submit" value="Загрузить">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement