PHP includes
Would you like to change layouts by only editing two files and your css? It's incredibly easy and necessary to know if you are planning on using blog layouts.^ If you want your layout coding (all the coding of your page from to the end of the starting div code, including the css shortcut and layout image codes etc.), ads or anything else on a large amount of pages and would like to edit them at any time then you would make a file called header.php, put all the coding you would like into it and then use the above php code to make it show.
In your footer.php file you would have your closing div tags (</div>) and then all of your menu coding. To use your footer you would just use the same php include but replace the url as such:
TAKE THE STARS OUT!
A blank page using php includes would look like this:
Hello
This is a test page. If this was your page, you would insert all the content you want inside your main content div here. <*?php include('http://YOURSITE.COM/footer.php'); ?*>TAKE THE STARS OUT!
If this tutorial helped you, please link back!
