How can I create Header & Footer file for website

Discussion in 'HTML & Website Design' started by seotips2011, Jan 29, 2011.

  1. #1
    Hello All,

    Please suggest me "How to create header & footer file for website"
     
    seotips2011, Jan 29, 2011 IP
  2. karthimx

    karthimx Prominent Member

    Messages:
    4,959
    Likes Received:
    127
    Best Answers:
    2
    Trophy Points:
    340
    #2
    you need to create them in html or in php ?
     
    karthimx, Jan 29, 2011 IP
  3. interkiwiwebdevelopers

    interkiwiwebdevelopers Active Member

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #3
    You can create one php file for the header and another for the footer, and use php includes to integrate these into every website page on your site.
     
    interkiwiwebdevelopers, Jan 29, 2011 IP
  4. Mari Anne

    Mari Anne Peon

    Messages:
    33
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Just a suggestion: take a look at the Worpress install. They do this exact thing with php header and footers.
     
    Mari Anne, Jan 29, 2011 IP
  5. chanif.alfath

    chanif.alfath Active Member

    Messages:
    148
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    #5
    it just like @interkiwiwebdevelopers says,

    you can just make header & footer file separately,
    then you can just include that file in every page you make,
    so if you need update header & footer,
    you just update 2 file, not the whole source.
     
    chanif.alfath, Jan 29, 2011 IP
  6. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #6
    You can use server side include, read here http://httpd.apache.org/docs/1.3/howto/ssi.html

    However, SSI is certainly not a replacement for CGI, or other technologies used for generating dynamic web pages. But it is a great way to add small amounts of dynamic content to pages, without doing a lot of extra work.
     
    radiant_luv, Jan 29, 2011 IP