Bulletmig33
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Random Link Php Script

Go down

Random Link  Php Script Empty Random Link Php Script

Post  don.1 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>");

?>
don.1
don.1
members
members

Posts : 9
Join date : 2011-10-16

Back to top Go down

Back to top

- Similar topics

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