Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-04-2006, 07:32 PM   #1
LQ Newbie
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Including header file using HTML

Is it possible to include a header and footer file using HTML? I have my file as a .html and need to be able to include the HTML for the header and footer. Anyone know how I can do this?
Free Online games
MingleOn SEO Web Directory

Last edited by hoho4rd; 12-11-2006 at 10:03 AM.
Old 12-04-2006, 08:34 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Try a Server Side Include (SSI):
Old 12-05-2006, 09:22 AM   #3
Senior Member
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,728

Rep: Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754
This is an interesting option. As a matter of fact I do have a website for which I would like to include headers & footers on each page, without having to edit each and every page if I add something to the header.

I am renting webspace at a commercial host. It is a Linux system, and it uses Apache, however I don't think I actually have access to the Apache config files. I just rent hosting space, no dedicated server or so. (

Or is it usual with those commercial hosts that you have a personal config file somewhere? I never tried funny things, because usually I break something. Which is no problem on one of my own machines, but certainly on some remote machine.

Old 12-05-2006, 09:44 AM   #4
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
Ask your company if they have SSI enabled. Or PHP. (or others, but with those two I am personal acquainted)
Old 12-05-2006, 12:20 PM   #5
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Have a look at iframes ( ). I think they will do the trick.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Including the header file of a module in kernel code omkarlagu Linux - Newbie 0 02-05-2006 08:55 AM
Including header files and source files for classes Feenix Programming 8 09-28-2005 11:53 AM
html code and including html files Hockeyfan Programming 2 08-22-2005 06:11 PM
How to write Makefile in 2.6 for including header files in another dir ? ashbalu Programming 0 10-19-2004 04:45 PM
Difference between including a header file and 'class' declaration in C++ scoTtkIm Programming 1 09-09-2004 05:23 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration