Php Includes
  • HEADER
  • FOOTER

Open a notepad or and editor pad add the following code
<html> <head> <title> YOUR TITLE </title> <link rel=stylesheet href="CSSNAME.CSS" type="text/css"> </head> <body>
  • Save it as header.php
  • Why is it called header.php because it contains the top of the layout.
Open notepad again a blank one and add
</body> </html>
  • Save it as footer.php
  • Why is it called footer.php because it contains the bottom of the layout.it can be copyright information.
Now you have header.php and footer.php. Now upload it to your ftp or cpanel.
Then open notepad blank one and add
< include ("header.php"); > CONTENT GOES HERE OR BLOGS OR NEWS UPDATES ANYTHING < include ("footer.php"); >
  • Add the ?php after the < before include
  • Delete the "header.php" and "footer.php" change it to 'header.php' and 'footer.php'
  • at last add the ? after the ; before the >
  • Save it as index.php
  • Why is it called index.php because it contains the WHOLE PART of the layout.
  • Also you use the php include on every page you use that needs it.
If your still not sure how it's set up just view my Setup