Ads not found on http://www.rv2.org/blog/

Discussion in 'Co-op Advertising Network' started by thesmallelder, Jan 9, 2005.

  1. #1
    I created a new ad for my blog and I placed the ads at the bottom of the page using this code:

    <p><?php
    
      $crlf=chr(13).chr(10);
    
      $ad_file='ad_network.php';
      // (include is relative to CALLING script's directory!)
      for ($i=0;$i<=11;$i++)
      {
        $phead=substr('../../../../../../../../../../',0,$i*3);
        if (file_exists ($phead.$ad_file))
        {
          $ad_file=$phead.$ad_file;
          break;
        }
      }
      include ($ad_file);
    
      echo $crlf;
      echo '     <br />'.$crlf;
      echo '     <strong>'.$ad_network[0].'&nbsp;&nbsp;|&nbsp;&nbsp;'.$crlf.
                   '     '.$ad_network[1].'&nbsp;&nbsp;|&nbsp;&nbsp;'.$crlf.
                   '     '.$ad_network[2].'&nbsp;&nbsp;|&nbsp;&nbsp;'.$crlf.
                   '     '.$ad_network[3].'&nbsp;&nbsp;|&nbsp;&nbsp;'.$crlf.
                   '     '.$ad_network[4].'</strong>'.$crlf;
      echo '     <br />'.$crlf;
    
    ?> </p>
    PHP:
    They are at the bottom of the page. However, when I click "Validate/Calculate Weight Now", it says "Ads not found on http://www.rv2.org/blog/". Any help?
     
    thesmallelder, Jan 9, 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
    Doesn't look like $_SERVER['REMOTE_ADDR'] is being passed properly to your script.
     
    digitalpoint, Jan 9, 2005 IP
  3. thesmallelder

    thesmallelder Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the quick reply! Sorry, not a PHP guy. :( How do I fix that?
     
    thesmallelder, Jan 9, 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
    No idea... would need to get into the code of your blog and server to look.
     
    digitalpoint, Jan 9, 2005 IP
  5. thesmallelder

    thesmallelder Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    So, I guess the program wont work for me? I can give access to the blog code, I don't know about the server code though.
     
    thesmallelder, Jan 9, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    Yeah, it probably would not work for you then.
     
    digitalpoint, Jan 9, 2005 IP
  7. thesmallelder

    thesmallelder Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I removed the ad for my blog however, when I try to Validate/Calculate Weight I still get an error message saying "Ads not found on http://www.rv2.org/blog/". I'm doing the ad for my graphics page which is rv2.org/graphics, but it still says it cant find the ad on rv2.org/blog/.
     
    thesmallelder, Jan 9, 2005 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    You would want to change your base URL to whatever you are running ads on.
     
    digitalpoint, Jan 9, 2005 IP
  9. thesmallelder

    thesmallelder Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    So I should give the exact adress like rv2.org/graphics/index.php?
     
    thesmallelder, Jan 9, 2005 IP
  10. thesmallelder

    thesmallelder Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Ok, thanks, I got working. :)
     
    thesmallelder, Jan 9, 2005 IP