Welcome

Hello, My name is Olivia.
I am the owner of Scenecult.net.
You will find all the tutorials, resources,
graphics, and everything else
you could possibly need for your internet life. ♥
eXTReMe Tracker

Elites

Mayra Chelsea Lena Bee Kayla Kaydee Mayra Kristen Jazmin Cinthya Kevin Liah Sandra Nikki
View All Affies

Updates

05/06/12:
21 Flair Buttons
2 Wallpapers

Chatter

Credits

Design+Code © Ghostic Form 2010-2012.

PHP Includes Tutorial

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:



NOTE: You can also just link your style.css page, in this tutorial I just had it in my template that I have on my site. You can see them here.

Index.php

These are the PHP includes that you will use on EVERY page. They are what makes everything work. You will put these on the index.php page, and all your other page. (Example: If you have siteurl.com/brushes.php – You will put them on the brushes.php page.)

Footer.php

This is the last part of the tutorial. If you look into your layout coding, everything after the content part goes here. So, it should start with < / div>. It should look something like this:

You’re all done! Comment and tell me if this tutorial helped you. :)