Created
September 19, 2017 10:04
-
-
Save mhajder/2fd0af3534bd12bc7a82c83980235748 to your computer and use it in GitHub Desktop.
File to display directory content.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<br> | |
<table align="center" width="100%" border="0"> | |
<tr> | |
<td width="10%"> </td> | |
<td> | |
<?php | |
if ($handle = opendir('.')) { | |
while (false !== ($file = readdir($handle))) { | |
if ($file != "." && $file != ".." && $file != "index.php" && $file != ".htaccess" && $file != "all.php" && $file != "index.html") { | |
echo "<a href=\"$file\">$file</a><br>\n"; | |
} | |
} | |
closedir($handle); | |
} | |
?> | |
</td> | |
<td width="30%"> </td> | |
</tr> | |
</table> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment