0){ $limite++; } //echo "Limite:".$limite; //echo "Total:".$total; //Creamos 2 arrays con los nombre de los xml $col1 = array(); $col2 = array(); $i=0; while($i<=$total){ if($i<$limite){ $col1[]=$listaPaises[$i]; } else{ $col2[]=$listaPaises[$i]; } $i++; } $totalCol2 = sizeof($col2)-1; //echo "Total2:".$totalCol2; echo ""; echo ""; echo ""; echo ""; $i=0; while($i < ($limite)){ echo ""; $xml = simplexml_load_file("./criadores/".$col1[$i]); echo ""; if($i<$totalCol2){ $xml = simplexml_load_file("criadores/".$col2[$i]); echo ""; } echo ""; $i++; } echo "
"; echo "
"; echo " "; echo "
"; echo " "; echo "
"; echo "
"; echo " "; echo "
"; echo " "; echo "
"; echo "
"; echo " "; echo "
"; echo " "; echo "
"; } function getDirectoryList ($directory) { // create an array to hold directory list $results = array(); // create a handler for the directory $handler = opendir($directory); // open directory and walk through the filenames $indice = 0; while ($file = readdir($handler)) { // if file isn't this directory or its parent, add it to the results //si es espana.xml NO lo aņadimos //if ($file != "." && $file != ".." && $file != "espana.xml") { if( EndsWith($file,".xml") && $file != "espana.xml" && $file != "otras_webs.xml" ){ $results[$indice] = $file; $indice++; } } // tidy up: close the handler closedir($handler); //Ordenamos el array sort($results); //foreach ($results as $key => $val) { // echo $val . "
"; //} // done! return $results; } ?>

Criadores de Golden Retriever