Thank you, feherke, for joining in and helping me (a star for you).
As I said, I am a novice and you are the experts. So what I am saying may still not make any sense. But this is how I understand what you've said would apply to me.
I have three categories of pages: Index, table of contents and 40+ individual pages. The index and table of contents have just a little bit of the common code in them and for simplicity I'll eliminate them from the discussion (I'll handle their common code updates individually). The other 40+ pages can be addressed either directly through the table of contents or serially from one page to the next.
Let's call my pages
myfileA, myfileB etc. These files have common code in the beginning, the end and a couple of places in the middle. The beginning and end would not be a problem as the "INCLUDE" would be placed in between the "beginning common code" and the "end common code". Simple enough.
But for the common code in the middle, it would seem I need to
break up each html file into a few files in this structure:
myfileA.php (or myfileA.shtml) - within this file would be:
Code:
[i]
common code [/i][b][COLOR=blue]<?php include (or SSI #include) "myfileApart1.html"; [/color][/b] [i]common code [/i][b][COLOR=blue]<?php include (or SSI #include) "myfileApart2.html"; [/color][/b] [i]common code [/i]
.
The same breakup and structure would be true for
myfileB -
myfileB.php (.shtml) , myfileBpart1.html, myfileBpart2.html - myfileC... etc.
And the good suggestion to have the
single "common" file calling the unique code files would not seem to be work, either, as each of the 40+ unique pages can be addressed directly by the visitor. A common page would not know which real unique page the visitor wants to go to. So each page (myfileA, myfileB etc.) needs the common code (as above) and I couldn't have just one "master" common code page calling the unique code pages.
Again, as a novice, I may be all wrong and have misunderstood what you were all good enough to post.
And again, thanks to everyone for your suggestions, ideas and examples.