O'Reilly logo

Perl and Apache: Your visual blueprint for developing dynamic Web content by Adam McDaniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. ADDING DYNAMIC CONTENT WITH SERVER-SIDE INCLUDES (SSI)

Introducing Server-Side Includes

You can use Server-Side Includes, or SSI, to import dynamic content directly into an HTML file and to run basic conditional tests on the CGI environment. Apache understands SSI-specific elements and applies the changes to the HTML content prior to delivering the page to the Web browser.

SSI uses a new set of directives that look like HTML comments. These directives, when found in HTML, convert into dynamic output, depending on the command used. You can use these directives to supply variables, include other HTML files, or even execute programs such as CGI scripts.

You can mix the SSI and CGI technologies, but only in a specific order. Apache cannot ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required