PDA

View Full Version : php banner rotator



tariq.masood
February 24th, 2006, 05:19
I think php-adsnew could be the best adrotator.
But unfortunately its not working well with my webhost.
Can u guys tell me anyother baner rotator which could help me rotate ads between Google Adsense,Clicksor,Bidvertiser,Adbrite & one more PPC program.

And please tell me if google allows ad rotation programs .

Thanx for support u willlllll offer.
:beer:

tariq.masood
February 24th, 2006, 05:21
Dont 4get to tell me if there is any website which offers this service online for free.

Richard
February 24th, 2006, 06:34
<?
srand((double)microtime()*1000000);
$randomnum = rand(0,4);
if ($randomnum == 1)
{
echo 'First Ad TML code';
}
if ($randomnum == 2)
{
echo 'Second Ad HTML code';
}
if ($randomnum == 3)
{
echo 'Third Ad HTML code';
}
?>

Simple :)

ingfina
February 24th, 2006, 10:10
I think php-adsnew could be the best adrotator.
But unfortunately its not working well with my webhost.
Interesting. What is the problem?

X3r0X
February 24th, 2006, 10:23
Go to www.hotscripts.com and find one, there are ad-rotators a plenty. They even mention one on their homepage :P.

themoose
February 24th, 2006, 11:04
I would go with hosting-shack's method. Perhaps improve it a bit by making it a function so it's easier to call, and adding forcing to it.


<?php
function ShowAd($force) {
if(!empty($force)) {
$randomnum = $force
} else {
srand((double)microtime()*1000000);
$randomnum = rand(0,4);
}
if ($randomnum == 1)
{
echo 'First Ad TML code';
}
if ($randomnum == 2)
{
echo 'Second Ad HTML code';
}
if ($randomnum == 3)
{
echo 'Third Ad HTML code';
}
}
?>

Then to show a random ad, just call "ShowAd();", or to force an ad (eg 2) call "ShowAd(2);".

spiralfive
February 24th, 2006, 11:53
I'm not having any problems, but I too would like to know it anyone knows of something simpler than phpAdsNew to deliver ads (with an admin interface).

tariq.masood
February 26th, 2006, 00:07
Thanx for your support .
But i will continue search for script

tariq.masood
February 26th, 2006, 00:17
adbutler.com is a good service but it does,nt rotate Google & other PPC ads.

tariq.masood
February 28th, 2006, 11:19
How to include it into my webpages.

tariq.masood
February 28th, 2006, 12:39
Get online banner ad rotation system for free at http://www.bannerpower.com/