I am going to build a big project with a lot of similar pages. The layout will be completely similar to the pages, but the content will vary.
My question is if it is best/quickest to build one page and then fetch different content from the database with the $_GET
method or just manually build a lot of pages with the different information.
What gives best speed?
Display similar html/php pages with different content
998 views Asked by 2bb1s At
1
The best speed would be to "just manually build alot of pages with the different information", but you will find that it is a nightmare to maintain because if you need to make a change on the header portion of the page, you will need to change EVERY single file! Plus the speed increase would most likely be negligible.
It's better, in my opinion, to simply have a layout. The very simplest way to do this without any template engines or frameworks is something like this:
layout.php