What are PHP Includes? Well, let me start off by saying..they will make your site a whole lot easier! They make it so you don’t have to change every single page you have on your site, when you just need to change one little thing. You are just editing two pages. :) Simple enough, huh?
Do you have to have a domain to have PHP includes? No, you don’t. Just make sure that your site can have PHP includes, or this won’t help you at all. I believe that pretty much most all sites can have PHP includes, but there are some that can’t. Make sure yours can. :)
Now, let’s get started. Make sure you have these pages: index.php, footer.php, and header.php
Header.php
The next step is to go look at your layout coding, find where the content section starts. Copy all that is above that, its usually like <div id=”content”> or something along those lines. Copy that line, and everything above it. Paste that into your header.php file. It should look something like this:
You’re all done! Comment and tell me if this tutorial helped you. :)