The Navigation.
» The Index
» About Jayde
» For the Strangers
» Tutorials
» Misty Dreams

The Statistics.
Webmiss: Jayde
Host: Alys <33!
Version: 17.0 by me
Since: Dec. 16th, 2005
Online: visitors
Resolution: 1024x768
Browser: IE, Firefox

Link Me.
More?

Copyright.
Everything on this website, including ideas & graphics, belongs to Jayde unless otherwise stated. Pictures used in layouts belong to their rightful owners. Do not use anything commercially, please and thank you.

PHP Includes
First of all, you ask, what are PHP includes? Well, it's basically the same as HTML, but it saves you a lot more time; for example, if you have a website with over 50 pages, if you were to add a top affiliate or change just a teensy weensy bit of information, that'd be a lot of pages to go through. PHP includes make everything a lot easier, and you won't have to be able to go through every single page to change something.

What I would advise you to do is first code everything as you would normally, with everything you need at the top. Then, copy everything from the top UNTIL YOUR CONTENT. Then, paste it in a separate file and name it 'header.php'. Do the same thing again, only from the end of the content to the end of your code. Paste that in a separate file and name it 'footer.php' Then, rename your your files to PHP, and put this at the top of your page:

<? include("header.php") ?>

Then, put this at the bottom of your page:

<? include("footer.php") ?>

And then, if you need to edit anything, all you need to do is change either header.php or footer.php, and it will display that way on every page. Neat, huh? And when somebody takes a look at your code, all he or she will see is the full code; it will display everything within 'header.php' and 'footer.php'. Make sure you don't view it offline; you'll have to view it online to see it properly.

IMPORTANT: FREESERVERS DON'T ALLOW PHP. You can only use PHP properly if you get hosted, or if you get a domain. The only freeserver I know so far that allows PHP is Deluxe Host.

{ Backward. }