View Single Post
Old 11-15-2006, 08:32 PM  
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by Fris View Post
write a random function

$file = "urls.txt";
$fp = file($file);
srand((double)microtime()*1000000);
$urls = $fp[array_rand($fp)];
echo $urls;

could do that and call it from

<a href="<?include "random.php"?>">

and if they must be .html pages you could add to .htaccess

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html .inc

dont know if thats what you are looking for or not
you know, that might actually work better, cause then the page would be changing constantly
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote