PHP Code On Every Page! Why?

Discussion in 'Co-op Advertising Network' started by who67, Mar 16, 2005.

  1. #1
    Why do I have to put the PHP code on every page of my site? I have a very large site with over 100 page's. This is just not feasible.
     
    who67, Mar 16, 2005 IP
  2. tfbpa

    tfbpa The....Alive

    Messages:
    896
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    120
    #2
    If you don't use any header/footer you can edit all documents in once by replacing some text and adding the same text + php code.
    A good free program can be found here, http://www.orbit.org/replace/
     
    tfbpa, Mar 16, 2005 IP
  3. Neilson

    Neilson Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'd back up the local copy first though!
     
    Neilson, Mar 16, 2005 IP
  4. Josh

    Josh Peon

    Messages:
    893
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #4
    100 pages isn't very large. Some members here have sites with 10,000+ pages :)

    Next time you build a site, try using some kind of PHP backend/templating system. For my site, I just had to edit one file, and the changes where reflected globally.


    Josh
     
    Josh, Mar 16, 2005 IP
  5. sadcox66

    sadcox66 Spirit Walker

    Messages:
    496
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    * So that we can catch coop cheaters
    * So high PR pages are included into the coop and benefit the community
     
    sadcox66, Mar 16, 2005 IP
  6. ViciousSummer

    ViciousSummer Ayn Rand for President! Staff

    Messages:
    3,210
    Likes Received:
    526
    Best Answers:
    0
    Trophy Points:
    308
    #6
    So you can have ad's on every page. How else would you suggest going about placing ad's on every page of your site?
     
    ViciousSummer, Mar 16, 2005 IP
  7. HdBiker

    HdBiker Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Now I have another - but related - question. How am I supposed to put coop ad text into RSS feeds? The coop spider is spidering XML feed outputs from my blog (because they have php extensions I guess - they come from WordPress). Clearly the ads won't do anything or display inside an RSS feed. I've been going through here looking for some kind of solution besides manually revalidating every time the spider hits a feed and doesn't find the code. The feeds are dynamically generated and if I add the coop code I expect they will fail to validate as valid xml and any reader/aggregator will puke.

    Is the only solution to hack the WordPress code to change all feed extensions to .xml or .atom? Which is hardly a good idea since these feeds are in use and indexed in RSS directories etc.

    Thanks,
    Rick
     
    HdBiker, Mar 26, 2005 IP