read()) { if ($entry != "." && $entry != "..") { $array[] = $entry; $counter++; } } $d->close(); $counter--; $which = rand(0, $counter); ?> '; ?>