link url rotator needed

le5oy

Newbie
Joined
Sep 21, 2008
Messages
16
Reaction score
5
i need a url rotator that when you click the link it goes to one of the url's in the url rotator. I don't mean a homepage rotator but one that when you click a link on the homepage it goes to one of the links which i add to the rotator. can anyone help?
 
Last edited:
Heres what I posted there..

Code:
<?PHP

srand((float) microtime() * 10000000);

$url_list = array("http://site.com",
                  "http://site2.com",
                  "http://site3.com",
                  "http://site4.com",
                  "http://site5.com");

header('Location: '.$url_list[rand(0,count($url_list))]);

?>
 
So, to use this code you would save a page like links.php and put just this code on it and make the link from the homepage link to the links.php page?
 
Back
Top