How to add Adsense code into PHP template ?

Discussion in 'Site & Server Administration' started by poseidon, Jul 17, 2006.

  1. #1
    well which is the best way of embeding adsense code into php template ? I can do echo 'one line of adsense code<br>'; for all the lines but I want to do it in a better and neat way instead of so many echos. :) How this can be done ?

    Thanks
     
    poseidon, Jul 17, 2006 IP
  2. EGS

    EGS Notable Member

    Messages:
    6,078
    Likes Received:
    438
    Best Answers:
    0
    Trophy Points:
    290
    #2
    Do:

    <?php echo('whatever HTML'); ?>
    Code (markup):
    You MUST put a \ after every quotation. (")
     
    EGS, Jul 17, 2006 IP
  3. RRWH

    RRWH Active Member

    Messages:
    821
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    70
    #3
    A much easire way is to put your adsense code into a seperate file, and within your php page, simply include "adsense.file" ;
     
    RRWH, Jul 17, 2006 IP
  4. sandossu

    sandossu Guest

    Messages:
    2,274
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #4
    before " :D
     
    sandossu, Jul 17, 2006 IP