My site failed validation today - I updated the php file and the ads are showing but its still failing validation. Another one of my sites works though. The site that doesn't work is: http://www.vietnamjournal.org Thanks for any advice.
This is the code I'm using to for the ad network (copied from my footer.php): include ('ad_network.php'); echo ('Ads: '); echo implode (' | ', $ad_network);
Try adding this to the end of your ad_network.php file: echo "<!-- $_SERVER[REMOTE_ADDR] -->"; PHP: and tell me when you have done it.
You can go ahead and take it off. It looks like you might have a front-end web server that is proxying all the web requests. Because of that, your "real" web server (and therefore the ad_network.php script) sees the user's IP address as an internal/non-routable IP address... 192.168.2.201 in my case when I looked.
Sorry to keep asking, but what do I need to do to fix the proxy issue? I'm in contact with the web hosting so I can fix the problem if I know what to do. Thanks.
Shawn, my friend changed ad_network.php to work with web proxies (as long as it still shows the ads) - do you want the code?