SSI & PHP
Do you have a website? Do you have navbars that show up on every page of your site? If so, do you edit each page's navbar seperately? Then this is the thing for you!
SSI
SSI is short for Server Side Includes. SSI allows you to change the navbars for your site on one .txt file, and it will show up on every page! Unfortunately, not all hosts support SSI. Make sure that you check to make sure before you start this. My host doesn't, so I use PHP, but we'll get into that later. ^^
First, make a new Notepad document (or whatever you would have on other computers) and name it [left, leftmenu, etc].txt and another named [right, rightmenu, etc].txt (or whatever your text program's extension is). In this tutorial, we'll use leftmenu.txt and rightmenu.txt. Next, open up one of your pages in a text program. Copy everything from the first html tag to the start of the content and paste it into the file for the left menu. Place this tag in place of it:
<!--#include virtual="leftmenu.txt"-->Now, copy everything from the end of the content to the last html tag and paste it into the right menu file. Place this code in place of it:
<!--#include virtual="rightmenu.txt"-->Now, you must change the extention of all of your pages to .shtml.
Note:- Be sure to change the bolded areas in the code to whatever name you gave the menu documents.
I hope that helped! If you have any problems or you don't understand, then just email me! ^^
PHP
If your host doesn't support SSI, then PHP could save your life! And your website! xD
PHP stands for Hypertext Pre Processor. Don't ask me why the initials don't match. :P Now, using PHP is exactly the same as SSI, but the codes are different! It's that easy!
<?PHP include('leftmenu.txt');?>and
<?PHP include('rightmenu.txt');?>Now, you change all of your pages to .php!
I hope that this helps you a lot! ^^





