Hello,

I have this code:

php Code:

[B]load($sitemap);
$x = $xmlDoc->getElementsByTagName("url");
$size=0;
foreach ($x AS $item){ $size++; }
$xmlDoc->load($sitemap);
$y = $xmlDoc->getElementsByTagName("url");
$string = "Location: ";
$randomURL = rand(1, $size);
$i=1;
foreach ($y As $p)
{
if($i==$randomURL)
{
$toOpen = $p->getElementsByTagName("loc");
$toOpenURL = $toOpen->item(0)->nodeValue;
$string = $string.$toOpenURL;
header($string);
}
$i++;
}
?>


How do I make the $sitemap read rss.php ?

This is a very old code I used... and I remember that the code above can actually work on http://www.mysitehere/rss.php

so it redirects all users into the URL inside the /rss.php



http://forums.masr.me