|  | -
-
- QUESTION:
- How do I use SSI?
ANSWER: - The simplest example of server-parsed HTML is to have a file "foo.shtml" containing this text:
Line one<br> <!--#exec cgi="mycgi.cgi" --><br> Line three
And then have a file "mycgi.cgi" that contains, on Unix:
#!/usr/local/bin/perl print "Content-Type: text/html\n\n"; print "Line Two\n";
And when you access "foo.shtml", it will output:
Line one Line two Line three
If your include directive is <!--#exec cgi="..." -->, then the cgi program you run must output a standard CGI header (Content-type: text/html)
Any file named foo.shtml will be parsed automatically by Apache on our servers.
Do not put any spaces before the '#' character in your include directives; if you have "<!-- #exec" instead of "<!--#exec", the line will be ignored.
Server-side includes in "custom trailers" will not work, since custom trailers are appended to the output of your web pages after all other processing has been done on them. Any server-side includes that you put into your custom trailers will be sent directly to the browser without being parsed.
More Help for using SSI can be found at: http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html
Eddie ############################################################ Please be advised that this is a SUPPLEMENTAL Online Manual.
The PRIMARY Online Manual is inside your Online Control Panel... to access it, just click Documentation link at very bottom of Online Control Panel screen.
You should always consult the Online Manual inside your control panel first... and only consult this SUPPLEMENTAL Online Manual as a last resort. if after consulting the Control Panel Documentation, you still need assistance, please CONTACT SUPPORT top | | |