/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $dirArray[] = $entryName; } echo $indexCount." Files<br />"; for($index=0; $index < $indexCount; $index++){ if($dirArray[$index] != "." && $dirArray[$index] != ".."){ if($type == "dir") { echo "<img src='img/dir.png'>"; } else { echo "<img src='img/file.png'>"; } echo "<a href='".$dirArray[$index]."'>".$dirArray[$index]."</a><br />"; } } ?>