Charity - Repair Bad Credit - Personal Loans - Free Ringtones - Loans

PDA

View Full Version : Error with Ads


yfs1
Dec 5th 2004, 12:16 pm
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
Seomaker

digitalpoint
Dec 5th 2004, 1:24 pm
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.

yfs1
Dec 6th 2004, 2:21 am
Thanks Shawn..I hadn't realized it wasn't already set up that way. Works on html like a charm!

bresso
Dec 15th 2004, 5:01 pm
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

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 28th 2004, 1:58 pm
Hey Shawn,

now that you're back, may you please help me with this problem? Thank you :)

digitalpoint
Dec 28th 2004, 1:59 pm
Yeah, your server was blocked because it was not caching ads properly (making about 10 requests per second to the ad server 24/7).

bresso
Dec 29th 2004, 5:31 am
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 :)

digitalpoint
Dec 29th 2004, 7:31 am
Are you using an up to date version of the ad_network.php file? Have you made any changes to it at all?

bresso
Dec 29th 2004, 9:55 am
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
Jan 1st 2005, 5:02 am
Any idea Shawn?

digitalpoint
Jan 1st 2005, 8:57 am
No, I don't...

bresso
Jan 1st 2005, 11:13 am
Okay :( Thank you anyway! I'll try to figure it out.

bresso
Jan 3rd 2005, 2:12 pm
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 :)

digitalpoint
Jan 3rd 2005, 2:17 pm
What does your cache file look like? Does it have ads in it?

bresso
Jan 3rd 2005, 2:40 pm
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.

digitalpoint
Jan 3rd 2005, 2:47 pm
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.

bresso
Jan 3rd 2005, 2:55 pm
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?

digitalpoint
Jan 3rd 2005, 2:59 pm
Okay, i unblocked it... what does your ad_network_ads.txt file show before the <ad_param> tag?

bresso
Jan 3rd 2005, 3:01 pm
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|

digitalpoint
Jan 3rd 2005, 3:02 pm
Okay... hopefully everything should be good now for you.

bresso
Jan 3rd 2005, 3:02 pm
Thanks a lot Shawn! Should I do anything on my side before I put back the ad code in my footer?

digitalpoint
Jan 3rd 2005, 3:03 pm
Nope... it should be fine.

bresso
Jan 3rd 2005, 3:06 pm
Okay, I'm going to put the ad code back in the footer. I'll keep checking this forum for 10 minutes. Please let me know if the problem is gone (my site was not caching the ads properly).

Thanks Shawn !!! :)

bresso
Jan 3rd 2005, 3:22 pm
No word from you. Hope it means everything's good. I would like to thank you again for your time and patience! :)

digitalpoint
Jan 3rd 2005, 3:23 pm
Looks good on this end so far.

bresso
Jan 3rd 2005, 3:28 pm
Sweet :) Just so I learn from it, what was the problem caused by? I now can go snowboarding with my mind free of problems :D

digitalpoint
Jan 3rd 2005, 3:32 pm
I'm not sure. It looks like you have a very high traffic site, so it could have been the lack of file locking on the old ad_network.php file.