PM me a login/password for the server the file is on (and a path to the file if it's not in the default folder). Also, take out the include in your template file(s) that reference it... that way your users don't see a bunch of debugging crap on your normal web pages.
Okay, you should be good to go. The reason the echo thing wasn't working in the ad_network.php file, is that it was within a if/then, rather than the end... no biggie though. Anyway, the problem was that your file extensions are .htm, so your pages were spitting out the PHP include code in raw form. What I did was add this to the end of your .htaccess file: AddType application/x-httpd-php .htm Code (markup): And all is well...
so I need to do add "AddType application/x-httpd-php .htm" to the .htaccess of http://montanalandsale.com/ too?
Thanks Shawn both sites appear to be displaying the ads now. One more question -- I expected to get some Bonus for http://www.web-design-is.us/ (it shows:0 Bonus) because I signed up http://montanalandsale.com/ using http://www.digitalpoint.com/tools/ad-network/?signup=272 What is that deal?
Ick... just found a bug. The referred by column was defined to be a tiny integer (meaning it couldn't be higher than 127). So your referral was assigned to user 127. Anyway, I fixed it and moved your referral over for you. And now going through the logs to properly move a couple others.
Hi Shawn This one is displaying the banner I plan on using but it will not auto validate. Web Page Design Here it the .php on the site: <?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?color=EBF0F4'); $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 banner is not coming from the ad network... I would double check the code you have generating that ad.
Hi Shawn Hey I switched hosts with web-design-is.us and their .htaccess file looks like: # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName www.web-design-is.us AuthUserFile /home/webdesig/public_html/_vti_pvt/service.pwd AuthGroupFile /home/webdesig/public_html/_vti_pvt/service.grp[CODE] when I add this line (AddType application/x-httpd-php .htm ) to the bottem of the code the web site will not display What shall I do? Code (markup):
My guess is that they have your site setup to not allow the AddType override. You probably will need to ask them to allow you to do it.