Digging a Little Deeper

You can use Server Side Includes for much more than just including static HTML in a page. In fact, ASP is a kind of Server Side Include, in that the server takes an HTML file and looks for commands it needs to execute and insert before it sends the page back.

Using SSI you can display dates and other information, or embed the results of scripts into the page. The most common SSI command is as follows:

<!--#echo var="DATE_LOCAL"-->

This command enables you to display the current date on your page easily like you did in Chapter 1, "Planning and Designing A Professional Web Site." Examine how it works, so you can see what else it can do for you.

  • The server reads the page.

  • The server checks, or parses the page, looking for ...

Get Active Server Pages 3.0 from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.