i have following problem, i generated the urls for the sitemap, in a array. So the array has 60000 entries. And google wants me to create 2 sitemaps cause the limit is 50000 ent
$count_array = count($data);
$i = 0;
foreach ($data as $entry) {
if ($i == 0) {
// code here to start first file
} else if ($i % 50000 == 0) {
// code here to end previous file and start next file
}
// write entry to current file
// insert code here....
// increment counter
$i++;
}
// code here to end last file