0) { foreach($arr AS $key => $val) { $arrEmpty[] = $val; } $rand = rand(0, count($arrEmpty)); if($arrEmpty[$rand] != "") { echo ""; } else { MakeRandom(&$arr, $url); } } } $arrDirPad = "/home/emile/domains/fuckedbymachine.nl/public_html/random_foto/"; $arrDir = dirTree("$arrDirPad"); $arrDirPad2 = "/home/emile/domains/fuckedbymachine.nl/public_html/random_film/"; $arrDir2 = dirTree("$arrDirPad2"); ?> Fucked by machine