How would I embed HTML code in different pages?

Discussion in 'HTML & Website Design' started by comcenter, Feb 9, 2009.

  1. #1
    Hi all;
    I am in the process of updating a website I bought made in html. I want to add a footer section, for example 'footer.htm' in every page, but I don't want to have to update the entire website, page by page. I'm used to doing quick updates using php using the <include file> tag, but I would like to keep the code of this site in html.

    Any ideas?
     
    comcenter, Feb 9, 2009 IP
  2. ammoun

    ammoun Active Member

    Messages:
    983
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #2
    hmmm, you want to just integrate an HTML code into every single webpage? is it?
     
    ammoun, Feb 9, 2009 IP
  3. comcenter

    comcenter Well-Known Member

    Messages:
    706
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Yes.
    Someone suggested I use the <iframe> command, and seems to be working so far, I will post should I run into trouble.

    Thanks.
     
    comcenter, Feb 9, 2009 IP
  4. ammoun

    ammoun Active Member

    Messages:
    983
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #4
    It's a way to do it, but did you find another for this issue?

     
    ammoun, Feb 9, 2009 IP
  5. InputProductions

    InputProductions Banned

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Geez dont use Iframe when all you have to do is rename the file with a php extension and do a php include. You don't have to recode the whole site, just change the file extensions.
     
    InputProductions, Feb 9, 2009 IP
  6. comcenter

    comcenter Well-Known Member

    Messages:
    706
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #6
    It is my method of preference, but keeping the code in html saves me a lot of money in hosting (php is heavy on cpu resources), this is a very high traffic site.
     
    comcenter, Feb 9, 2009 IP
  7. ammoun

    ammoun Active Member

    Messages:
    983
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Show me some samples in PM if you want, I'll try to see where we can inject the new codes :)
     
    ammoun, Feb 9, 2009 IP
  8. comcenter

    comcenter Well-Known Member

    Messages:
    706
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #8
    I think the <iframe> tag works just as the php <include file> command, with some differences. One has to adjust width, margin, border, and such, but I think I can work it out with no major issues.

    Thanks for your help.
     
    comcenter, Feb 9, 2009 IP
  9. InputProductions

    InputProductions Banned

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Well the iframes will cut down on your seo, so you'll have to take a preference which is more valuable to you... server resources or SEO.
     
    InputProductions, Feb 9, 2009 IP