How to place Adsense in php

5 replies
  • WEB DESIGN
  • |
I managed to link a site with ftp but I can't view the design on dreamweaver. I am trying to add Adsense but because I can't see the design I am having a hard time knowing exactly where the Adsense code goes in the php script. I tried adding the code once but I did not see any changes after I upload the page. Can someone advise what I am doing wrong?
#adsense #php #place
  • Profile picture of the author RedMatrix
    swim in soda,

    It depends on where you want the Adsense to appear. Post a copy of your .php file here, (using the [php] [/php] tags) and I will be happy to tell you were to place it.
    Signature

    ~Dave

    {{ DiscussionBoard.errors[561746].message }}
  • Profile picture of the author swiminsoda
    Hi RedMatrix, I am having difficulty posting the code here as it contains links. So I have attached as a txt file instead. I am trying to add a 728x90 horizontal banner at the top and bottom of page.
    {{ DiscussionBoard.errors[562629].message }}
  • Profile picture of the author brp002
    If you are postin adsense into PHP make sure you close the PHP tag and then reopen it

    ?>Adsense Code<?php
    Signature

    If you want a link here please email me!

    {{ DiscussionBoard.errors[564850].message }}
    • Profile picture of the author magic1000
      Originally Posted by brp002 View Post

      ?>Adsense Code<?php
      Nice Answered!
      {{ DiscussionBoard.errors[566002].message }}
  • Profile picture of the author RedMatrix
    That's a big file!

    To put your adsense code at the top, place it under the <body> tag somewhere.

    Like this:
    Code:
    ...
    <body bgcolor="#C0C0C0" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
    
      <div align="center">
    
      ...adsense code....
    Signature

    ~Dave

    {{ DiscussionBoard.errors[567776].message }}

Trending Topics