Results 1 to 3 of 3

Thread: Google Ads Don't work when changed to PHP

  1. #1
    Join Date
    May 2005
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Google Ads Don't work when changed to PHP

    Hey

    In reference to my last thread

    http://www.dynamicdrive.com/forums/s...ead.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

  2. #2
    Join Date
    May 2005
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey

    I've forgot to mention the code for the ads

    Code:
    <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

  3. #3
    Join Date
    May 2005
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey

    Don't worry guys

    Problem Fixed

    gold2040

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •