Create a file index.php:
<?php
$allItems = scandir(".");
$toHide = array('.', '..', 'index.php');
$toShow = array_diff($allItems, $toHide);
foreach ($toShow as $oneItem) {
echo "<a href='$oneItem'>$oneItem</a><br>";
}
?>
Monday, September 23, 2019
Subscribe to:
Post Comments (Atom)
1 comment:
Thanks for your post. seems to be useful for me.
Post a Comment