Djance.net - high quality resources for you and your website.
Djance.net
© Djance.net 2008 — Contact me - Twitter - Deviantart

PHP include

Blog · Tutorials · PHP · PHP Include

This tutorial was really messy right?, i'll re-write it when I got time. Remind me please ?

I'll not explain whay this tut is going to help you, but this is the tut about the howl php thing.

First of all start adding a file, name the file with "header.php". Open the file by right-click > edit. Then past this code as an example for your sitebar and the position og your content and your layout, and soo on.


Now save the file "header.php". Then make another page called "index.php". Past this code at the top of every page you wanna use PHP one.

REMOVE all spaces unless the space between PHP and INCLUDE!!!

Make another file named "footer.php". And use add this code.
.

Now before u start coding all the pages. Use this code in the end of all pages.

REMOVE all spaces unless the space between PHP and INCLUDE!!!
NOTE: Probably when you've just bought new domain you have to upload "header.php & footer.php" in every folders. TRY out not adding the header and the footer in folders first. Add the header and footer if it didn't work. Hope u learned something of this tutorial