Random Link Php Script

Go down

Random Link Php Script

Post  don.1 on Sat Nov 17, 2012 7:26 pm

Code:
<?

//set the urls
$urls = array("http://bulletmig33.wen.ru/" ,"http://bullet4747.wen.ru/" ,"http://bullethelp.tk/" );

//set the text links
$text = array("bulletmig33" ,"bullet4747" ,"bullethelp");
        srand(time());

//set the number in (rand()%3); for however many links there are
        $random = (rand()%3);
echo ("<a href = \"$urls[$random]\">$text[$random]</a>");

?>
avatar
don.1
member
member

Posts : 9
Join date : 2011-10-16

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum