|
|
GUIDE How do I include one file in another file like headers, footer? The concept of joining the output from multiple files at the server level is called SSI. Server Side Include. This is very useful for adding common headers and footers to all your pages. By default SSI will work only on files ending with .shtml , create a file called test.shtml and another file called header.htm. Put this in the test.shtml where
you want header.htm to be included. Now upload both file test.shtml and header.htm to the webserver. Using your browser go to http://www.yourdomain.com/test.shtml (Replace yourdomain.com with actual domain). You should get the output of the merged file. You can also include the output of a PERL/CGI
script into a html file. a sample include statement would look
like. See Also : How to enable SSI on non .shtml files?
|
|
|
|