I am not a newbie, but I am not very good at scripts. I was searching for a random url script and ran a cross this script
<?php
// Go to a random URL
$url[0] = "http://google.com/";
$url[1] = "http://altavista.com/";
$url[2] = "http://lycos.com/";
srand ((double)microtime()*1000000);
$randomnum = rand(0, count($url)-1);
header ("Location: $url[$randomnum]");
?>
When I add it to a file it does not work, can someone help me.
<?php
// Go to a random URL
$url[0] = "http://google.com/";
$url[1] = "http://altavista.com/";
$url[2] = "http://lycos.com/";
srand ((double)microtime()*1000000);
$randomnum = rand(0, count($url)-1);
header ("Location: $url[$randomnum]");
?>
When I add it to a file it does not work, can someone help me.

Comment