This directory contains C source code for the programs printed in the book "CGI Programming in C and Perl," by Thomas Boutell, published by Addison-Wesley. Perl source code can be found in another directory. The files included are: Filename Purpose Makefile A Unix Makefile for all examples; type "make programname" bugrep.c An email form handler: chapter 9 cgicmnts.c A comment handler, using cgic: chapter 8 cgictest.c A demonstration program for advanced forms: chapter 11 cgipull.c A client-pull example: chapter 12 chart.c A module to draw bar charts: chapter 10 (see also chart.h) chart.h #include file for the chart.c module: chapter 10 checkrej.c A function to reject unauthorized users: chapter 6 comments.c A comment handler, not using cgic: chapter 7 dimage.c A program which outputs an inline image: chapter 10 gdshort.c A program which uses gd to draw an image: chapter 10 hello.c A bare-bones CGI example: chapter 3 mag.c An inline image "magnifying glass": chapter 12 nph-p2.c Server push, with fallbacks for older browsers: chapter 12 nph-push.c A server push example: chapter 12 nph-sss.c The Solar System Simulator: chapter 13 parse.c Routines to read a database in a text file: chapter 14 parse.h #include file for the parse.c module: chapter 14 refimage.c A program which references random inline images: chapter 10 simtrade.c World Wide Web Wall Street, trading simulator: chapter 14 testc.c A simple test program for the chart.c module: chapter 10 trade.c World Wide Web Wall Street, main CGI program: chapter 14 wbw1.c World Birthday Web, first version: chapter 5 wbw2.c World Birthday Web, complete cgic version: chapter 8