[This is preliminary documentation and subject to change]

# Server-Side Includes Reference

You can use Server-Side Include (SSI) directives to perform certain tasks in static Web pages. Static Web pages execute slightly faster than ASP pages on a large scale. With SSI directives, you can include the contents of a file in a Web page, include information about a file, include server variables, or include the output from executables like CGI files and ISAPI apps.

With the exception of including executables, all of these tasks can be performed with ASP script. If you need to use ASP script for other tasks in a Web page, you will need to use the ASP solutions for these tasks. With the exception of the #include directive, you cannot mix SSI directives with ASP script.

Note The server-side time and date functions use the language set by the C library locale rather than the operating system locale. The C library locale is usually set to English.

In this section:

- #config: Specifies the string to be used for SSI error messages, and the format to be used for dates and file sizes returned by #flastmod, #fsize.
- #echo: Inserts the value of an server variable into an HTML page.
- #exec: Runs an application or a shell command and inserts the output into an HTML page.
- #flastmod: Inserts the modification date of a file into a Web page, formatted by the #config directive.
- #fsize: Inserts the size of a file into a Web page, formatted by the #config directive.
- #include: Includes a file in a Web page. This is the only directive that can be used in ASP files and STM files.

© 1997-2001 Microsoft Corporation. All rights reserved.