$root = $_SERVER["DOCUMENT_ROOT"];
$directory = "/season_3/dl/sprays";
$path = $root.$directory;
$handle = opendir($path);
while ($item = readdir($handle)) {
echo "<a href='http://www.actionleague.co.uk/season_3/dl/sprays/";
echo $item;
echo "'>";
echo $item;
echo "</a><BR>";
}
closedir($handle);
even when the directory is empty I get the following echos
.
..
and both are links to the above!
weird?
any ideas?
I'm trying to list all files in this directory.. even if I included somes files they gte listed along with those the
.
..