Paul Janaway's PHP Ad-Rotator
Rotate banners easily with this script, it includes:
Easy setup
No database needed
Rotate up to 3 banners (more can be added)
Open site in the same window or a new one
Site url, image url and description
Installation Procedure 
Quick Tips 


The script can be downloaded from here.

The file that you will download is saved in .zip format; this is a compressed bundle containing the files in the distribution. Unzip this archive in a temporary directory on your computer using decompression software.

Open ad-rotator.php with any of the text editor (eg, Notepad).


Configure the script by following the instructions. You can modify the value so that the script match your requirement
///////////
// SETUP //
///////////
// State how many ads there are in total (max: 3)
$total_ads = 1;
// No need to edit
$rand_ban = rand(1,$total_ads);
// Banner size
$banner_width = 468;
$banner_height = 60;
// Decide on if you want it to create a new window or not when
// the ad is clicked.
// 1 = new window
// 2 = same window
$window = 1;
// Ad details, goes by: image url, site url, site description.
// If you have 1 ad, then fill in ad_1 only, if you have 2 ads
// then fill in ad_1 and ad_2 etc.
$ad_1 = array("http://maddogsplace.co.uk/includes/images/mdp_468x60.png",
"http://maddogsplace.co.uk",
"maddogsplace.co.uk | Home Is Where The Heart Is");
$ad_2 = array("image url here",
"site url here",
"site description here");
$ad_3 = array("image url here",
"site url here",
"site description here");

Save the file and start your FTP software and upload ad-rotator.php to the /var/www/html/ folder.

You can now test your script by going to http://www.mywebsite.com/ad-rotator.php

Congratulations, the installation of PHP Ad Rotator is now complete.
How to include PHP Ad Rotator in your webpages?
Add the following lines to any of your .php pages:
<?
include("ad-rotator.php");
?>
Top