Server Side Includes

SSI stands for Server Side Includes, and is a must-have for all websites with multiple pages. It divides up all the HTML above the content of a page and all the HTML below it into two files. Basically the menus. This way, you need only edit one file in order to, for example, add a new link to your navigation bar, rather than have to edit through every single one of your pages. There are two different ways to use SSI; both provide the same exact result. It's only your preference.

SSI with SHTML

1.) Open your HTML page. Copy all the code above the content of the page and paste it into a new file called top.txt.
2.) Skip over the content, and copy all the code below the content. Paste it into another new file called bottom.txt.
3.) Delete the codes that you copied from the original file, and replace the top half with

and replace the bottom half (after the content) with

4.) Now rename all your content file extensions, except the top.txt and bottom.txt, to .shtml. This is critically important.
After doing that, you're done! Now, if you edit something in your menus, it'll come into effect on all your pages at the same time. ;)

PHP Includes

1.) Rename all your file extensions to .php instead of .shtml. Be sure that your host supports PHP.
2.) Now, do the same thing as in the above SSI guide, only change the codes I provided above with

and

That's it! ^^


-------Disclaimer-------
Eonlight Valley, all its content and graphics are unless stated otherwise (c) Kronakitty (kronakitty@gmail.com) 2005-2008. Official Pokemon contents and images are (c) Nintendo 1995-2008. This is only a fan site, and I do not claim ownership of Pokemon.