Multiple Ads With Unwanted Alternating Format

Discussion in 'Co-op Advertising Network' started by Jeffo, Feb 24, 2005.

  1. #1
    I have this line in passthru.php

    echo preg_replace ("/<\/body>/i", $ad_network[0] . ' - ' . $ad_network[1] . ' - ' . $ad_network[2] . '</body>', file_get_contents(str_replace ('../', '', $_REQUEST['file'])));

    What happens is I get randomness in the ad format. Sometimes all three will be text format ad, sometimes one will be in a box. Is there a way to get all three to be consistently text?
     
    Jeffo, Feb 24, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Flush your ad_network_ads.txt file. Sounds like you had the ad_network PHP file setup one way, and then changed it to another, with some of the first ads still in your cache.
     
    digitalpoint, Feb 24, 2005 IP
  3. Jeffo

    Jeffo Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks. That works. Only issue now is sometimes (sometimes not) the same ad will show up in two of the three.
     
    Jeffo, Feb 24, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Just give it some time until the cache fills up so it has more to pick from.
     
    digitalpoint, Feb 24, 2005 IP