something weird.....

Discussion in 'Co-op Advertising Network' started by jfontestad, Apr 1, 2005.

  1. #1
    something weird is happening... i'm using coop.php as an ssi for my .shtml pages. and in coop.php the ads are displaying fine (only 5 show up), but on the page I get 9 ads appearing.

    Coop Network: * | * | * | * | * | * | * | * | *

    any suggestions as to why this may be happening?
     
    jfontestad, Apr 1, 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
    What does your coop.php file have in it?
     
    digitalpoint, Apr 1, 2005 IP
  3. jfontestad

    jfontestad Well-Known Member

    Messages:
    1,236
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    148
    #3
    <?php
    $_SERVER['REMOTE_ADDR'] = $_REQUEST['ip'];
    include ('ad_network.php');
    echo $ad_network;
    ?>
     
    jfontestad, Apr 1, 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
    Try taking out the echo line and see if that works.

    When you see too many ads, are they replicated?
     
    digitalpoint, Apr 1, 2005 IP
  5. jfontestad

    jfontestad Well-Known Member

    Messages:
    1,236
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    148
    #5
    yea that did the trick. :)
     
    jfontestad, Apr 1, 2005 IP
  6. jfontestad

    jfontestad Well-Known Member

    Messages:
    1,236
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    148
    #6
    maybe that wasn't the trick.
    after a few refreshes i'm getting a blank page now.
     
    jfontestad, Apr 1, 2005 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    Add the echo back to the coop.php file, and try taking out the echo at the end of the ad_network PHP file (it should be within the last 10 lines).
     
    digitalpoint, Apr 1, 2005 IP
  8. jfontestad

    jfontestad Well-Known Member

    Messages:
    1,236
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    148
    #8
    there we go :)
    thanks.
     
    jfontestad, Apr 1, 2005 IP