I need to create a php script that opens a random page from a wordpress blog's sitemap.xml but I really don't have a clue on how to do it. Can someone help me on this?
The sitemap is located here: http://designsuperstars.net/sitemap.xml
Any help is welcomed, Bogdan
You can try this simple script
$url = "http://designsuperstars.net/sitemap.xml" ;
$xml = simplexml_load_file($url);
$link = $xml->url[mt_rand(0,count($xml->url)-1)]->loc ; // Get Random Location
Header("Location:" . $link); // Load any page