View Single Post
Old 03-27-2002, 12:43 AM  
4Pics
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Posts: 7,952
What's wrong with how i am doing it


<?

$urls = array(
1 => "http://www.url1.com",
2 => "http://www.url2.com",
3 => "http://www.url3.com",
4 => "http://www.url4.com",
);

srand ((double) microtime() * 1000000);
$randnum = rand(1,4);
$goto = $urls[$randnum];

header("Location: $goto");

?>

Last edited by 4Pics; 03-27-2002 at 12:45 AM..
4Pics is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote