[ Contents ] [ Index ]
[ Previous ] [ Next ]

Examples

This chapter contains Tcl examples that are available in the examples/tcl directory under the AOLserver installation directory. These examples are indexed. If you want to find an example of a specific Tcl function, look in the index under the name of the Tcl function for the subentry "example of". For example:

ns_register_proc Tcl function, 179

example of, 212, 221

Here's an overview of the examples in this chapter:

Example

Description

Example 1: hello

Implements simple Tcl-based "hello world"

Example 2: showhdrs

Shows how to access the client's HTTP headers

Example 3a: genstory

Creates procedures for data collection and generation

Example 3b: pagetcl/genstory

Implements above as page script vs.Tcl library script

Example 4: redirect

Illustrates use of AOLserver simple response command

Example 5: desctable

Provides description of columns in a database table

Example 6: getemps

Shows how to query a database table

Example 7: wincgi

Emulates WebSite WinCGI interface

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.