Sintaxa:
<?php
$File = 'stat.txt';
$Images[] = 'Banner1.gif';
$Images[] = 'Banner2.gif';
$Images[] = 'Banner3.gif';
$fp = fopen($File, 'r');
$Stat = fread($fp, filesize($File));
fclose($fp);
if($Stat >= count($Images)) $Stat = 0;
echo $Images[$Stat];
$Stat++;
$fp = fopen($File, 'w');
fwrite($fp, $Stat);
fclose($fp);
?>
|