PHP includes w/ ad code

Discussion in 'Guidelines / Compliance' started by gamerfreak, Dec 28, 2006.

  1. #1
    Would it be ok to put my ad code in a separate file and then insert it in all my pages using php includes? The more I think about it the more I see how it wouldn't work.
     
    gamerfreak, Dec 28, 2006 IP
  2. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #2
    THAT would work , I use seperate files for my ads , another words includes
     
    sundaybrew, Dec 28, 2006 IP
  3. gamerfreak

    gamerfreak Well-Known Member

    Messages:
    250
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #3
    so I can just have a file like adcode.php then in all my other pages just include adcode.php?

    Thats really helpful, thanks.
     
    gamerfreak, Dec 28, 2006 IP
  4. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #4
    Yes, sure....you can name the file what ever you like and just use an include across the site, :)

    This is what mostly everyone does..well At least I hope they do ...saves loads of time when you want to change the ad
     
    sundaybrew, Dec 28, 2006 IP