Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>test</title>
- </head>
- <body>
- </body>
- <?php
- $dirname = ".";
- $dir = opendir($dirname);
- while(false != ($file = readdir($dir)))
- {
- if(($file != ".") and ($file != ".."))
- {
- echo("<a href='".$file."'>".$file."</a><br />");
- }
- }
- ?>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment