I'm using the dir() example from the manual to read in imagenames and make them clickable via a link. It displays 2 blank lines at the top though where the "." and ".." are. Is there a way to get it to not show those?
<?php
$d = dir("foto/fullsize/");
while($entry=$d->read()) {
echo "<a href='/foto/fullsize/$entry' border='0'><img src='foto/thumbs/thumb
-$entry'></a><br><br>\n";
}
$d->close();
?>