1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Using Php include?

Discussion in 'Placement / Reviews / Examples' started by vvenomouss, Dec 4, 2005.

  1. #1
    Hello,
    If I have 1000s of pages & just for changing the ads I cannot edit 1000s or 100s of pages...
    so if I create a page 'ads.inc' & insert the adsense code in it...
    & then use include('ads.inc') on every page where I want to display the ads.

    Will the ads perform fine?
    Is it legal too?

    Thanks in advance
     
    vvenomouss, Dec 4, 2005 IP
  2. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sure you can, all includes will do is include the contents of the file just like you were to have coded it there yourself. Just make a file called whatever, like ads.php. Then in your php file where you want the code to go, add:

    <? include('ads.php'); ?>
     
    mdvaldosta, Dec 4, 2005 IP
  3. vvenomouss

    vvenomouss Peon

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    so means I can use it & ads will perform normally..........
    thanks....
     
    vvenomouss, Dec 4, 2005 IP
  4. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes they'll perform fine.
     
    mdvaldosta, Dec 4, 2005 IP