PHP and adsense help

Discussion in 'PHP' started by Nevis1, Sep 15, 2006.

  1. #1
    First let me say, that I do realize that this is not a PHP forum, however I thought somebody might have a link, or snippet of code that they could share to have adsense be pulled up by PHP

    What I want to do is to include adsense code in a table for a new site that I am designing, roughly 100 pages, but if I change the colors, size, etc., I don't want to have to change the code on 100 pages.

    Is their a way where I can create this table with the code and then just add the table to every page, I know how to do this, but then later on just change the PHP code and have every page reflect the adsense changes?

    Is this as clear as mud?

    Hopefully somebody will understand what I am trying to convey.

    Thanks:)
     
    Nevis1, Sep 15, 2006 IP
  2. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Save your adsense code as one PHP page, for example: adsense.php.

    After that just add this in all other pages:

    <?php include "adsense.php"; ?>
     
    SoKickIt, Sep 15, 2006 IP
  3. procrastinator

    procrastinator Peon

    Messages:
    1,718
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks SoKickIt , i was also looking for the same :), googled around and found lots of confusion , searched on DP and got my answer.
     
    procrastinator, Mar 19, 2007 IP