View Single Post
Old 12-23-2008, 07:40 PM  
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
Quote:
Originally Posted by fris View Post
Code:
<?

// urls.txt should be format of <a href="domain.com"><img src="domain.jpg"></a>
// 1 per line

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

?>

displays one thumb at a time. how can we display them ALL side-by-side randomly?
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote