bu xmlden rastgele veri çektiğim kod
$xml = simplexml_load_file('linkler.xml');
$link = $xml->url[mt_rand(0,count($xml->url))]->loc ;
echo $link;
?>
bu da xml örneğim
https://wmaraci.com/1
daily
https://wmaraci.com/2
daily
https://wmaraci.com/3
daily
https://wmaraci.com/4
daily
https://wmaraci.com/5
daily