View Single Post
Old 11-15-2006, 08:27 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
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
good solution , only problem is the links would be spidered as random as well ( although that might be better )

i.e. for seo purposes it might be better for them to be randomly placed but stay static
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote