Here's the script I wrote:
<?php
$dir = "./";
$scandir = scandir($dir);
$scandir = array_slice($scandir, 2);
foreach ($scandir as $files) {
echo '<a href="'.$files.'">'.$files.'</a><br>';
}
?>
But I want it to remove index.php from the list of files (list all files in the directory except for index.php)
So what do I add to the script to tell it not to list that one file?