|
Gil -> RE: checking for SSI capabilities on server (9/8/2003 14:38:28)
|
quote:
How can one check if SSI can be used on a server? Quick test is: Create a text document and type a line or two of text, something like "The quick sly fox jumped over the lazy brown dog". Save this file with the name ssi_test.txt. Create another text file and type (or copy and paste) the following: <HTML> <HEAD> <TITLE>SSI Test</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <P>This is the SSI test</P> <P><!--#include virtual="ssi_test.txt" --></P> </BODY> </HTML> The line <!--#include virtual="ssi_test.txt" --> is an SSI Directive. It tells the server to read the text file and send whatever is contained within to the browser. Save this file as testing.shtml. (In your text editor, go "File>Save as...". In the "File name" field, enter "testing.shtml". In the "Save as type" field, select "All files".) You may also need to create a file association so Windows will know what program to use to display .shtml files. Go "View>Folder options..." and click on the "File types" tab. Find "SHTML files" in the list of file types, highlight it and click "edit" to create the new file association, if necessary. Upload both of the new files to your server and then load testing.shtml in your browser. If the page reads: This is the SSI test The quick sly fox jumped over the lazy brown dog .....congratulations! Your server has support for SSI. If only the first line displays, you will not be able to use Server Side Includes on your site, although you should give your systems admin a call before abandoning all hope. Some hosts provide SSI capability only upon request.
|
|
|
|