I need to include the same content on every page of my website. However, sometimes it changes. I want to be able to change it only once, instead of having to change the same item on every page. I've looked into both PERL (scary!) and php, but I'm not sure where to begin. I know that it has something to do with Server Side Includes, but that's about it...Does anyone have any suggestions?
you need php parsing for the file extension where you are placing the include statement.
You then place the include code in there making sure the path to the included file is correct no matter where on the site the page including it is located.
You could use include $DOCUMENT_ROOT . "/somefile.html"; OR include $DOCUMENT_ROOT . "/includedir/somefile.html";
makes the path absolute so that it won't break.
new file with header and body tags
nope, php will take the content in the included file and put it into the other page as is. Only put the code to be included in there. You don't need anything extra. Look at the source through a browser once the include is in there and you will see more what I mean.