I am getting the following message: Account not not yet activated. | Site failed automatic validation as of 2004-08-13 (make sure URL and site type is correct - if everything is correct, it may require manual validation)
I am still trying to get the "Coop Advertising Network automatic validation" routine to do it's thing. I've installed the files, set the permisson for the .txt file and set include_once ('http://web-design-is.us/ad_network.php') but the site will NOT validate or display ads -- anyone have any suggestions?
The php code is in "http://www.web-design-is.us/web-design-includes/bottom.htm" I am having the same problem trying to add the site http://montanalandsale.com/ Note: when I run "http://montanalandsale.com/ad_network.php" all I get is a blank page, is that should happen?
Yes... the PHP script doesn't echo anything back, it just sets the $ad_network variable. Are you echoing that variable out somewhere in your template?
<?php $ad_file = 'ad_network_ads.txt'; for ($i = 0; $i <= 11; $i++) { $p = substr ('../../../../../../../../../../', 0, $i * 3); if (file_exists ($p . $ad_file)) { $ad_file = $p . $ad_file; break; } } if (is_writable ($ad_file)) { $ads = file_get_contents ($ad_file); $ads = explode ('<ad_break>', $ads); if (count ($ads) < 101 || $ads[0] + 3600 < time()) { $ads[] = file_get_contents ('http://ads.digitalpoint.com/network.php'); $ads[0] = time(); if (count ($ads) > 101) unset ($ads[1]); $file = fopen($ad_file, 'w'); fwrite ($file, implode ('<ad_break>', $ads)); fclose ($file); $ad_network = end ($ads); } else { $ad_network = $ads[rand(1,count($ads))]; } $ad_network .= '<!-- an-hl -->'; } else { $ad_network = 'You must set the "ad_network_ads.txt" file to be writable.'; } if (substr ($_SERVER['DOCUMENT_NAME'], -6) == '.shtml') { ini_set ('zlib.output_compression', 0); echo $ad_network; } ?> PHP:
That should be the separate ad_network.php file... what code do you have within your normal file(s) that actually calls it though?
<?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include_once ('http://web-design-is.us/ad_network.php'); echo $ad_network; ?>
You need to take out the domain... it should be like so: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include_once ('ad_network.php'); echo $ad_network; ?> PHP:
You getting any errors or anything? Or just no output? To debugging it by adding: echo $ad_network; PHP: to the end of the ad_network.php file, and see if it spits anything out if you call it directly. That will at least narrow it down to the php file or the file it's being included in.
http://www.web-design-is.us/ad_network.php still results in nothing but a blank page and http://www.web-design-is.us/ displays no ads
Okay, then the problem is in the ad_network.php file (assuming you added the echo line to it). So let's concentrate on that... If you look at the ad_network.txt file, is it populated with any ads? Also, what version of PHP are you using?
PHP version 4.3.8 and ad_network_ads.txt has this: 1092501400<ad_break><table width=468 height=60 bgcolor=#000000 cellpadding=1 cellspacing=0><tr><td><table bgcolor=#CCCCCC cellpadding=0 cellspacing=0 width=466 height=58><tr><td align=center valign=middle><b><a href="http://plasmatelevision.bestpricefan.com/">Plasma TV Customer Reviews</a></b><br><font size=-1>Customers Reviews and Best Prices on state-of-the-art Plasma Television and LCD TV sets</font></td></tr></table></td></tr></table><ad_break><table width=468 height=60 bgcolor=#000000 cellpadding=1 cellspacing=0><tr><td><table bgcolor=#CCCCCC cellpadding=0 cellspacing=0 width=466 height=58><tr><td align=center valign=middle><b><a href="http://www.netestate.com.au/">Australian Real Estate Listings</a></b><br><font size=-1>List your property today for free. Featuring a variety of real estate opportunities from Australia and abroad, NetEstate provides multiple listings which are ideal for realtors and private vendors.</font></td></tr></table></td></tr></table><ad_break><table width=468 height=60 bgcolor=#000000 cellpadding=1 cellspacing=0><tr><td><table bgcolor=#CCCCCC cellpadding=0 cellspacing=0 width=466 height=58><tr><td align=center valign=middle><b><a href="http://www.take-me-away.co.uk">First Class Travel</a></b><br><font size=-1>Luxury, first class or business class travel</font></td></tr></table></td></tr></table><ad_break><table width=468 height=60 bgcolor=#000000 cellpadding=1 cellspacing=0><tr><td><table bgcolor=#CCCCCC cellpadding=0 cellspacing=0 width=466 height=58><tr><td align=center valign=middle><b><a href="http://broadband.giveasyouget.net">broadband uk</a></b><br><font size=-1>GiveAsYouSurf Broadband</font></td></tr></table></td></tr></table><ad_break><a href="http://www.sendwu.com/"><img alt="westernunion" border="0" width="468" height="60" src="http://banner.westernunion.com/wucom/arc_468.gif"></A>
Okay, so it's able to get ads from the server, and it's also able to save them to the cache... strange. Any chance you want to set me up a temporary account on your server (I would just need access to that one file) so I could debug it for you?