Hour 14. Creating a CGI-Based Message Board

One feature found on many Web sites is a discussion group where the site’s users can discuss topics of common interest and share information. This hour’s lesson consists of a walkthrough of a Web discussion group application that you can adapt for use on your own site. Not only is the application useful on its own, but it also demonstrates how flat files are used for data storage in a real application, and illustrates the following topics:

  • Creating flat files from a Web application

  • Creating a file format for data storage

  • Parsing through a text file to extract information

  • Modifying a structured text file

  • Generating unique filenames dynamically

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.