I've always liked phpAdsNew. It's extremely powerful, but also a pretty large script. But it has so many options you won't know what to do with yourself.
Something simple like below would do the job: <?php $numOfAds = 5; /* put number of ads here */ $ad = rand() % $numOfAds; if($ad == 0) { ?> Ad code here <?php } if($ad == 1) { ?> Ad code here <?php } ...
lephron has a good idea. You could also put the ads in an array, get a random number from taking the array size, and display $array[randNum].
Good suggestions, by why not take it one step higher by placing ads into an sql database? Then you could easily just call it like so: <?php $sql = "SELECT * FROM `advertisements` ORDER BY RAND() LIMIT 1"; $q = mysql_query($sql); $r = mysql_fetch_assoc($q); ?> PHP:
This would be my top choice too, but he may not have access to a database or may not be familiar with working with them.