home resources tutorials facebook hosting credits ov

php includes tutorial

This will teach you how to get the includes to work in directories so you don't have to add the header,footer,style into every directory.

The Steps

1. Put your header.php, footer.php, and style.css in your public_html (the place it always goes).

2. On your header.php page, make sure the style include is set up like this (DO NOT FORGET THE / THAT GOES BEFORE STYLE.CSS!!!! PEOPLE FORGET IT ALOT AND IT MESSES THE ENTIRE THING UP):

3. On your main index.php page, and all pages in all directories. Use this coding (click here) or (click here)