Home Insurance - Best Credit Cards - Personal Loans - Debt Help - Repair Bad Credit

PDA

View Full Version : PHP and adsense help


Nevis1
Sep 15th 2006, 11:44 am
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:)

SoKickIt
Sep 15th 2006, 12:15 pm
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"; ?>

procrastinator
Mar 19th 2007, 1:11 am
thanks SoKickIt , i was also looking for the same :), googled around and found lots of confusion , searched on DP and got my answer.