Jump to content

PHP Ad rotation w/stats


dvdflashbacks

Recommended Posts

Can someone point me in the right direction on what free or low cost ad management/ad rotation+statistics solutions there are.

 

I have a php/mysql site that I have been working on and currently I have implemented a simple image rotation (but haven't gotten the url links to work correctly) and I really need to find a better solution now.

 

I need to find some sort of easy banner ad (side ads as well) rotation management (lite) tool for php.  All we need is image w/url rotation and stats.  We only need advertisers to be able to see their impressions and click-thrus.  No other client tools are really necessary.

 

Does anyone have any good suggestions?  Thanks.

Link to comment
https://forums.phpfreaks.com/topic/138706-php-ad-rotation-wstats/
Share on other sites

current example here. Sorry every pic the same but your see the i dear.

http://simpleforum.ath.cx/add.php

 

You got to add the < a href link referencing the add for the database stats.

 

Have a look the adverts are changed every 3 seconds.

 

Use a iframe in the page.

 

 

<?php

header('refresh: 3; url='.$_SERVER['PHP_SELF'].'');

$a=array("my advert 1 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
         "my advert 2 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
         "my advert 3  <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
         "my advert 4 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
         "my advert 5 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
         "my advert 6  <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
         "my advert 7 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
         "my advert 8 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
         "my advert 9 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
         "my advert 11 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
          "my advert 12 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
           "my advert 13 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
            "my advert 14 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
             "my advert 15 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",
              "my advert 16 <br> <img src='http://tbn1.google.com/images?q=tbn:bXAhorFB1r4qLM:http://images.worldofapple.com/tropical_ipodadvert.jpg' />",);


shuffle($a);

echo"<table><tr>";

for($i=0; $i<4; $i++, $a++){

echo "<td align='center'>$a[$i]</td>";

}

echo"</tr></table>"

?>

well lets build one? it will be a good learning experience

it cant be to hard :)

 

I agree with you on that.  I have a few books on PHP and prefer to build stuff myself.  But in this case I need to find a simple solution that works.

 

I downloaded a tool last night called phpads which has a pretty user friendly admin tool, but the code generator didn't seem to work correctly.  So now I am back to square one.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.