1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Looking for a php Adserver

Discussion in 'Content Management' started by Emperor, May 3, 2006.

  1. #1
    What other AD servers are there either than phpAdsNew. I’m looking for a simpler solution to run a few in house advertising banners. PhpAdsNew is very good but it offers more than what I require. A simple php script that enables me to run a few banner ads would be great thanks.
     
    Emperor, May 3, 2006 IP
  2. Indian

    Indian Peon

    Messages:
    1,572
    Likes Received:
    105
    Best Answers:
    0
    Trophy Points:
    0
    #2
    U shld try hotscripts.com
     
    Indian, May 3, 2006 IP
  3. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What features do you need? I can give you a simple code to rotate banners but you may want some stats or a backend to go with it?
     
    mad4, May 3, 2006 IP
  4. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I know about hotscripts.com but I want to find out what people here on DP use so they can give advice on security, ease of use, etc...

    I’m looking for something simple that can rotate about 4 to 5 banners. Some stats would be nice like the number of clicks but either than that don’t really care. I’m not going to sell the ad space it’s just for information and things like that.
     
    Emperor, May 3, 2006 IP
  5. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I use:
    
    $Ad[0] = '<a href="http://www.site.com" TARGET="_blank"><img src="banner1.gif">Site 0</a>';
    $Ad[1] = '<a href="http://www.site1.com" TARGET="_blank">img src="banner2.gif">Site 1</a>';
    $Ad[2] = '<a href="http://www.site2.com" TARGET="_blank">img src="banner3.gif">Site 2</a>';    
        
    $Weight[0]=3;
    $Weight[1]=3;
    $Weight[2]=3;
    
           
        $sum =0;
        for($i=0;$i<count($Weight);$i++)
        	$sum+=$Weight[$i];
        $ShowAd = rand(0, $sum - 1);
        for($i=0;$i<count($Weight);$i++)
        {
        	if($ShowAd<=$Weight[$i])
        	{
        		$ShowAd=$i;
        		break;
        	}
        	else
        		$ShowAd-=$Weight[$i];
        }
        echo $Ad[$ShowAd];
    
    PHP:
    Then if you have some good stats software like google analytics you can configure an onclick event to capture the clicks.
     
    mad4, May 3, 2006 IP
  6. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks a lot for the help. I think this will do the job. :D
     
    Emperor, May 3, 2006 IP
  7. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #7
    PhpAdsNew is a good script for running your own ads.
     
    exam, May 3, 2006 IP