I don't know in what context you mean. But, in constructing web pages using php, a header file is a php file that has the code for the top of the pages that you see. There may also be footer, sidebar and other php files. Those are then assembled by your host server, on the fly, for each visitor, along with the main php file for the page which makes the whole page different from other pages.
Each page of the site at
is basically constructed of a common header file, sidebar file, and footer file, along with a separate main file for each page. So if you look at different pages on that site, you will see that the top, bottom, and side of each page looks the same, but the main parts are different.
Often in large projects it is desireable to separate out the subroutines (which are presumably of a more generic nature) from the main part of the program. As well, it is also often the case that one wants to reuse subroutines in different programs, and copying the code from one program to another, as well as being tedious and prone to error, makes maintainability more difficult. As with the use of modules in Perl, it is possible to separate out the subroutines from the main program into separate files.
by Naveed Ahmed3 years ago
How do we know to use a particular header file in C programming?I am new to C Programming and I have observed that we can perform similar tasks while using either of the header files "iostream.h" and...
by ahmed.b5 years ago
Why one browser behaves differently at different times for PDF files ?why in same browser sometimes pdf file opens inside browser and sometimes it is downloaded on hard disk just like normal downloads. I have...
by Sondra Rochelle5 days ago
Lately I've seen a lot of hubbers complaining about the amount of time it takes them to find (or create) photos. Here's something I do that eliminates most of these problems that may help.I take very few or...
by webmastersrinivas7 years ago
how to index the dynamic header files in asp files major search engines? Please help me any one?how to index the dynamic header files in asp files major search engines?dynamic files should not be index in...
by Phyllis Doyle Burns2 years ago
I like the new Topic page design - but is it possible to have that for hubs only. Then have the feed page for forums, Q&A, and Status. I think that would be a very good way to showcase hubs more prominently and keep...
by puneetcomputers3 years ago
unfortunately my excel files are deleted, i have recover my files through software, but the data...of that files become corrupted. when i open my file that message is displayed "The file you are trying to...
Copyright © 2018 HubPages Inc. and respective owners.
Other product and company names shown may be trademarks of their respective owners.
HubPages® is a registered Service Mark of HubPages, Inc.
HubPages and Hubbers (authors) may earn revenue on this page based on affiliate relationships and advertisements with partners including Amazon, Google, and others.