Using SSI



SSI stands for Server Side includes. What is a Server Side Include? It is where you have a webpage and an alternate file and when you insert a certain code into the webpage the alternate file's text (or code) will appear in that page. I use it in my website for the banner, and the menu bars. I know countless other sites use it too for differing purposes. So you want to do this? Keep reading.



First off, change every page you want to have that certain code to have the extension .shtml. (EX: example.shtml)



Next, write the code you want to insert into all of the pages. This will be a .txt file. This code will be named example.txt:




Really I just cut this code out of the Link to Us page but anyway... Find the page that you want to insert example.txt into (in this case example.shtml).



So to insert example.txt into example.shtml, you will use the following code:





Remove the asterisk (*) in the above for it to work. There should not be any space between the comment start and the number include part.This code, when inserted, will put all of the text included in example.txt and put it in example.shtml. Note that wherever you put the code into the page is where the text in the .txt file will be placed. Before using this on your website make sure your webhost supports it. And there you go, SSI in a nutshell.


BackForward
All original content is copyright 2007-2008 The Castle of the Hybrid Goomba. The Castle of the Hybrid Goomba is not responsible for the content of any of the Pages that it links to. The Castle of the Hybrid Goomba is not affiliated with Nintendo or any other company.
Nintendo and it's respective characters are all copyrighted by Nintendo.
Site Reccomendations: 1024x768 or bigger screen resolution, Mozilla Firefox 2.x or IE 6+.