|
$file = "urls.txt";
$fp = file($file);
srand((double)microtime()*1000000);
$urls = $fp[array_rand($fp)];
echo $urls;
will work much better
in the file you will have to put <a href="http://www.url.com">site</a><br>
or
$file = "urls.txt";
$fp = file($file);
srand((double)microtime()*1000000);
$urls = $fp[array_rand($fp)];
echo "<a href='$urls'>random site</a>\n";
hope that helps
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.
My Cam Feeds Script
|