Soldato
Hi,
I have a simple ad rotation script that displays a different ad upon a page refresh. The ads are coming from a text file where the actual is just a bit of very simple html code. The PHP code is below.
What I would like to do is refrssh the ad every few seconds. Any ideas how I do this in PHP?
Thanks
I have a simple ad rotation script that displays a different ad upon a page refresh. The ads are coming from a text file where the actual is just a bit of very simple html code. The PHP code is below.
What I would like to do is refrssh the ad every few seconds. Any ideas how I do this in PHP?
PHP:
$file = join ('', file ('../../inc/banners2.txt'));
$ad = split("~",$file);
$bannerid = rand(0,(count($ad)-1));
echo $ad[$banner_id];
Thanks