View Single Post
Old 08-08-2009, 04:19 PM  
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by Twig View Post
I guess I could just go with something such as

Code:
<?php

$fcontents = join ('', file ('ads.txt'));
$s_con = split("@",$fcontents);

$banner_no = rand(0,(count($s_con)-1));
echo $s_con[$banner_no];
?>
but I'd rather be lazy with a simple interface lol.
I used same code and it work perfectly fine.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote