')) { #open the puzzle Dir while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != ".." && $entry != ".DS_Store") { array_push($arrayEntry,$entry); #put alle the images in the array } } closedir($handle); } ?>