View Single Post
Old 07-24-2008, 08:01 AM  
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
What mikey said, but if you don't wanna use a file for the urls, here's an easy way to do the arrray:

<?
$linkArray[0]="http://www.google.com";
$linkArray[1]="http://www.yahoo.com.com";
srand(time());
$count = count($linkArray);
$random = (rand()&#37;$count);
Header("Location: $linkArray[$random]");
?>
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote