What is SSI? and how do I use it ?

Server Side Includes (SSI)

When using a UNIX/LINUX system it is sometimes necessary to enable certain HTML files executable for the purpose of using SSI. Server Side Includes are often used to run a cgi script. An include is called with an example such as this: After you insert your include, you must mark the HTML file as executable so the server will parse the file. This is done using the two options below: 

1) Renaming the file to .shtml: On our server any file name .shtml will be parsed. So instead of having an index.html file, you would name it index.shtml. This is the easiest way of enabling includes.

2) CHMODing the file to 777: With CHMOD 777 you can also mark a file as executable. It is important to only make the files which you want parsed executable. This poses certain security issues, as well as a strain on our resources, as the processor has to work harder to
parse a file.

Reasons for Using SSI
SSI is often used to include something into an HTML page. You can insert the contents of one HTML page into another page. An example of a practical usage for this would be to include your e-mail address at the bottom of each page. If you do this as an include, then when your e-mail address changes, you will only have to update it on one page and not your entire web site. Another usage is to call cgi scripts into action. Many counters, clocks, and other scripts are called using SSI. The command used will most likely be provided in the documentation of your cgi script.

Byla tato odpověď nápomocná?

 Tisknout tento článek

Také čtěte

Why am I getting the "Internal Server Error (500)" message?

Internal Server Error (500) errors are typically something wrong in the syntax of your script....

Can you explain unix/linux file permissions?

Owner = the files users (you) Group = the files group Others = others Permissions Definitions: r...

I am having a problem with my CGI script. Do you have any advice before contacting support?

Below are solutions to some of the more common CGI script problems. When I activate my CGI...

Where can I find server paths used in my CGI or PERL scripts?

  The following server resources paths applicable to only CPanel customers. Perl path (...

Which script I need to use for my Formail application ?

You can download bnbform.cgi from http://www.bignosebird.com/carchive/bnbform.shtml Bnbform.cgi...