Page 1 of 1

several html pages with the same header and footer

Posted: Fri Apr 11, 2008 4:05 am
by thosecars82
hello folks
Could please anybody tell me what the best approach is to build a website which has 5 html pages all of them with the same header and footer and with only static content?
Two ideas came to my mind but i don't know which one is the best to make the code more professional in this case:

First approach: develop 5 html files

Second approach: develop one php file in which there is a header and a footer. And then make the content between the
header and footer dynamic with php in order to have the 5 html pages just in one php page.

I look forward to seeing your replies.
Thanks.

Re: several html pages with the same header and footer

Posted: Fri Apr 11, 2008 8:50 am
by Bill H
I would take the approach of making one php script that produces five html pages.

At just five pages it's probably a bit minor, but if changes need to be made to the header/footer, you would only have to make the change one place.

I'm probably biased, since I spend most of every day sitting at a computer composing php scripts that output html pages.

Re: several html pages with the same header and footer

Posted: Fri Apr 11, 2008 9:02 am
by thosecars82
thks for that