Hey I'm having trouble finding a way to exclude files from my list.
This is the code I'm using:
$dh = opendir("E:\Websites")
or die("failed to open directory");
$s = readdir($dh);
While ($s) {
echo "<a href=\"$s\">$s</a><br>";
$s = readdir($dh);
}
closedir($dh);
I want to exclude files and the . and .. that is also output.
any help would be apreciated