Free Advertising


Apply?

navigation

Home Collective Content Tutorials Hosting Domain Anamarlia Designs

Melissa

My name is Melissa, Mel for short. I'm a 18 year old, young aspiring graphics artist. I come from a hole of a town called Ingham in Queensland Australia. Wouldn't even surprise me if you ever find it on the map. I love graphic design, websites, internet, writing and my friends. I loath those who steal, lie and take credit for other people's hard work, so please be aware of that before you steal from me.


statistics

Name: Anamarlia
Opened: 23/06/07
Webmiss: Melissa
Layout & Coding By: Anamarlia Designs
Host: Artin
Online: online | Hits: 18358

Link Anamarlia.Com


more?

Hostees

Abbey Casey Claire Chrissy Jen Gwen Jess Kathy Melissa

Affiliates


More? or Apply?

Donate

If you would like to help keep Anamarlia.com online for years and years to come, then please donate, all procedes go towards the upkeep of the site and domain and hosting costs.

disclaimer

Everything you see on this site is copyrighted to Melissa, the owner of Anamarlia.com. You CANNOT edit, claim or steal any of the content on this site, to do so is against the law, if this is something you think you cannot live by or handle then please click the red 'x' at the right hand corner of your screen.

eyes off mofo!

eXTReMe Tracker
WP CP WM WZ Q&A A
Who links to me?

Home » Tutorials » CSS/HTML » PHP Includes


This tutorial will teach you how to use PHP inclusions correctly.

  1. Start off by geting all your CSS coding which affects the colour, layout, viewing of your site, you can also add your side bar and things you do not wish to have to edit on seperate pages, the easiest and sensible way is to copy everything but your content, include your layout positioning when you copy the CSS.
  2. Paste that into notepad and save it as header.php.
  3. Now open up another Notepad document and put all your finishing tags in it such as . Save this as footer.php.
  4. Okay now upload both the header and footer files up onto your FTP. Now all you want is to use a simple code on each page of your site to amke the layout show.
  5. So now you gather that all you need on your seperate pages is just the content. At the very top of the page before everything else add this code to make the header show:
    <?php include ("header.php");?>

    And at the very bottom add this code to get the footer document to show.
    <?php include ("footer.php");?>
Simple as, and it saves space on your FTP you can also add this same path code to show other things you do not wish to add on every single page just replace the file name to the corresponding page you wish the FTP to retrieve it from.

If you found this tutorial helpful please link Anamarlia.com:
ANAMARLIA.COM © 2007-2008, MELISSA BOTTO
Layout Design & Coding By ANAMARLIA DESIGNS