magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 2000 > 01 > Script Junkie  

Simplified Order Processing with Apache's mod_qs2ssi

By Mitch Wyle

Server-side includes (SSI) are special directives that are embedded as part of your HTML documents. SSI-enabled Web servers automatically replace these directives with computed values. SSI codes specify things like the last modification time of the document, its filename or URL, and other information from environment variables. SSI also lets you include standard inline headers, footers, and other common information that is stored in separate files. This function is the main and most popular purpose of SSI. SSI even lets the HTML in your document execute arbitrary UNIX commands, making the output of these commands appear as part of your document.

Apache is the most-used and most actively developed Web server in current use. Out of the box, Apache comes with the standard mod_include module enabled. Many of us use this module to insert standard headers and footers into our HTML pages using the <!--#include --> construct. However, the module provides many functions in addition to the simple #include parsing. You can set variables, create if-then-else conditional areas of an HTML file, perform string manipulation, and even launch external system commands just as you can in CGI. The documentation that comes with the mod_include module isn't very clear, and the syntax itself is also quite arcane. Regardless, it's a powerful system and simple to use once you get used to it. For this reason, it's more efficient and easier to take advantage of the Apache mod_include SSI capabilities directly in HTML documents instead of writing CGI application programs.




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2