![]() |
|||||||||||||||
![]() |
|||||||||||||||
SaiyanZ HQ |
|||||||||||||||
SSI Tutorial |
|||||||||||||||
Well, I have gotten many questions from my hostees and affiliates on how to use SSI, so this I just decided to make a section for this on my site... Well, this is for all you hostees out there that are trying to figure out how to do it but just can't find out... What is SSI? Well, SSI (Server Side
Include) lets you include the HTML coding from another html file into the current html
file you are coding... For example... Usually sites use SSI for their navigation bars, so
that whenever they wanna add a link or change a link or whatever it may be, they don't
have to go through all their pages and change it... here's the basic structure of how it
works... wherever you want for the code to appear you just insert this code... <!--#include virtual="nav.html"--> and that will substitute that code with all the html that is in nav.html Or, if you want to include the nav.html from any of the folders in your directory, you simply upload the nav.html to your root directory, and use this code: <!--#include virtual="/nav.html"--> The slash makes it look for the nav.html in the root directory, no matter what subdirectory you are in. Now, the same goes for including text files, or anything of that sort. In a text file, it will simply include all the text that is in that text file, and if there is any html, it will include it as html... |
|||||||||||||||