Typically, Header,Menu_items and Footer files are created and then coding is given in the index.php in order to flow all the 3 files info into all the additional pages. What all phpcoding is needed to create those 3 files (header,menu_items & footer? (any sample to view?)
It all depends what your trying to accomplish. Just to break a page into sections for including only requires use of the include() function. The other pages could be just plain html
I do normally have a folder called /includes/ where I put a top.php and bottom.php in. In every file, have this content: <? require("includes/top.php"); ?> Content here <? require("includes/bottom.php"); ?> And in top.php, I call mysql.php and session_start() in the top etc.
Won't it be better to have separate files for header.php, footer.php, menu.php and show all the three as includes in index.php and let also flow into other additional pages?