PDA

View Full Version : Google Ads Don't work when changed to PHP



gold2040
12-31-2005, 11:25 AM
Hey

In reference to my last thread

http://www.dynamicdrive.com/forums/showthread.php?t=6786

I have started recoding my pages to W3C HTML4.1 Standards

When I stick in some Google Ad Code though which is required by my Web Hosting as stated by the Admin it shows fine as a .html document but when I change it to .php nothing seems to show up.

I've got both pages for reference

http://abandonware.hostingzero.com/test.html (work's fine)
http://abandonware.hostingzero.com/test.php (doesn't work)

Cheers

gold2040 :)

gold2040
12-31-2005, 12:09 PM
Hey

I've forgot to mention the code for the ads


<script language='JavaScript' type='text/javascript' src='http://ads.zeroadserver.info/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://ads.zeroadserver.info/adjs.php?n=" + phpAds_random);
document.write ("&amp;clientid=30");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&amp;referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://ads.zeroadserver.info/adclick.php?n=a7ef1afb' target='_blank'><img src='http://ads.zeroadserver.info/adview.php?clientid=30&amp;n=a7ef1afb' border='0' alt=''></a></noscript>

It's in a slightly different format then the normal Google AdSense code but the same none the less

Cheers

gold2040 :)

gold2040
01-02-2006, 01:29 PM
Hey

Don't worry guys

Problem Fixed

gold2040 :)