Error with Ads

Discussion in 'Co-op Advertising Network' started by yfs1, Dec 5, 2004.

  1. #1
    Im getting the following error when adding to this html site (Its a different site then I posted before)

    As you can see the ad still shows though, It just prints the error on the site

    Warning: fopen(ad_network_ads.txt): failed to open stream: Permission denied in d:\graftonwebdesign.com\wwwroot\ad_network.php on line 41
    
    Warning: flock(): supplied argument is not a valid stream resource in d:\graftonwebdesign.com\wwwroot\ad_network.php on line 42
    
    Warning: fclose(): supplied argument is not a valid stream resource in d:\graftonwebdesign.com\wwwroot\ad_network.php on line 47
    [U]Seomaker[/U]
    Code (markup):

     
    yfs1, Dec 5, 2004 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
    Your ad_network_ads.txt file need to be writeable. The ads will work without it being writeable, but your server will end up being automatically blocked by the ad server because of making excessive queries.
     
    digitalpoint, Dec 5, 2004 IP
  3. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Shawn..I hadn't realized it wasn't already set up that way. Works on html like a charm!
     
    yfs1, Dec 6, 2004 IP
  4. bresso

    bresso Berserker

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello,

    Up until two days ago everything was running fine. But suddenly I started getting:
    Warning: file_get_contents(http://ads.digitalpoint.com/network.php?s=www.airmp3.com&type=link): failed to open stream: Operation timed out in /home/airmp3/public_html/ad_network.php on line 36
    Code (markup):
    I checked that my ad_network_ads.txt was still writeable and it is. Has my server been blocked or something? Please help. Thank you :)
     
    bresso, Dec 15, 2004 IP
  5. bresso

    bresso Berserker

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hey Shawn,

    now that you're back, may you please help me with this problem? Thank you :)
     
    bresso, Dec 28, 2004 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, your server was blocked because it was not caching ads properly (making about 10 requests per second to the ad server 24/7).
     
    digitalpoint, Dec 28, 2004 IP
  7. bresso

    bresso Berserker

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks for your answer. What may I do to make it work?

    I just checked my ad_network_ads.txt file and it's 10 kbs. It starts by 1104261000|216.9.35.51|us82jsdd<ad_break> and many sites' URL follow.

    Please help. Thank you :)
     
    bresso, Dec 29, 2004 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
    Are you using an up to date version of the ad_network.php file? Have you made any changes to it at all?
     
    digitalpoint, Dec 29, 2004 IP
  9. bresso

    bresso Berserker

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I updated it yesterday and did it again today just to be sure I have the latest version. I have made no changes to it.
     
    bresso, Dec 29, 2004 IP
  10. bresso

    bresso Berserker

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Any idea Shawn?
     
    bresso, Jan 1, 2005 IP
  11. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #11
    No, I don't...
     
    digitalpoint, Jan 1, 2005 IP
  12. bresso

    bresso Berserker

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Okay :( Thank you anyway! I'll try to figure it out.
     
    bresso, Jan 1, 2005 IP
  13. bresso

    bresso Berserker

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Shawn,

    my footer is a .txt file. I put your code in there, I suspect this may be why ads aren't cached properly. May you please unban my site so I can test it out? Thank you :)
     
    bresso, Jan 3, 2005 IP
  14. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #14
    What does your cache file look like? Does it have ads in it?
     
    digitalpoint, Jan 3, 2005 IP
  15. bresso

    bresso Berserker

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Yes it does. I'm not sure if it's okay to post it here? I'm very sorry if it's not. Please remove it if necessary. Here it is:

    <clip>

    I removed the end because of the 10K characters limit.
     
    bresso, Jan 3, 2005 IP
  16. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #16
    Something isn't right with it... There are no parameters at the beginning of the file. Try updating your ad_network.php file and see if it changes.
     
    digitalpoint, Jan 3, 2005 IP
  17. bresso

    bresso Berserker

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #17
    I just updated it. Apparently I already had the latest one. i'm using the text link code. I went to http://www.airmp3.com/test.php to test it. Since the site is blocked, I'm getting a timeout. Nevertheless, I flushed the old ad_network_ads.txt and found the following in the new one: 1104796741|216.9.35.51| . Does this help?
     
    bresso, Jan 3, 2005 IP
  18. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #18
    Okay, i unblocked it... what does your ad_network_ads.txt file show before the <ad_param> tag?
     
    digitalpoint, Jan 3, 2005 IP
  19. bresso

    bresso Berserker

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #19
    well there's no ad param tag... ? I now have three links. Before them, I have the following: 1104797070|216.9.35.51|us82jsdd|400|900|4|
     
    bresso, Jan 3, 2005 IP
  20. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #20
    Okay... hopefully everything should be good now for you.
     
    digitalpoint, Jan 3, 2005 IP