O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

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

Sample SSI Programs

This section presents the complete C code for several useful SSI programs. Some of them are platform-independent; others use some special features in the Windows NT operating system.

SSIDump

The SSIDump program is a handy debugging utility that dumps the SSI environment variables and command-line arguments back to the browser (see Listing 29.1).

Code Listing 29.1. ssidump.c—SSI Program for Dumping SSI Environment Variables
 // SSIDUMP.C // This program dumps the SSI environment variables // to the screen. The code is platform-independent. // Compile it for your system and place it in your // CGI-BIN directory. #include <windows.h> // only required for Windows machines #include <stdio.h> void main(int argc, char * argv[]) { ...

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