1. Home
  2. Computing & Technology
  3. Web Design / HTML

Writing CGI Programs and Scripts

Writing a CGI Program or Script is similar to writing any other C program or Perl script. There are some things you should know, like how to display your results on a Web page, and how to debug.
Installing a Guestbook
It's easy to say "just use a CGI" but how do you install them for use? Here's how. From your HTML Guide, Jennifer Kyrnin.
Perl @ About
If you're looking for more help with Perl and CGI, then the About Guide to Perl has all the answers you need.
CGI Resource Index
This is one of the best sites I've seen for finding CGI scripts, both remotely and locally hosted. If the script you need isn't here, you'll probably have to write it yourself.
CGI for the Total Non-Programmer
This is a great introductory tutorial. It shows you how to create a CGI using Perl on Unix.
CGI from WDVL
Here is a clear overview of how CGI works, including a sample program that creates the Web page for you.
CGI Made Really Easy
Getting started with CGI really is as simple as James Marshal writes in this short, intelligent "How To".
CGI Programming 101
A very comprehensive tutorial on CGI divided into "classes".
CGI Programming FAQ
A very comprehensive list of common questions and answers about CGIs.
CGI Scripts
Here is a clear description of CGIs, how they interact with the server, and how you can use the information to write scripts.
CGI tcl Home Page
Tcl is another language used for writing CGIs, and cgi.tcl is a complete library of CGI calls.
CGIc
An ANSI C library of CGI calls for creating CGIs in C. Very useful.
Common Gateway Interface
NCSA gives a short overview of CGI with lots of links to specific examples.
comp.infosystems.www.authoring.cgi
If you want to keep up to date on CGI, including languages, information, and the market, read this newsgroup.
Easy CGI FAQ
This companion guide to CGI Made Really Easy answers 9 commonly asked questions about CGI.
Flexible CGI Output with HTML Templates
Learn how to make complex applications that can be used across many sites with templates.
How to Use your CGI-BIN
While the page is a bit long, it has a lot of good information on getting started using that strange "cgi-bin" directory.
Perl5 CGI.pm Library
The CGI.pm library is a very useful Perl library. It makes all of the tricky parts of CGIs easy.
Sites That are Really Programs
If you are planning to deliver dynamic content to your Web site, then you will be creating programs that build Web sites.
Writing Secure CGI Scripts
If you are going to write CGI scripts you should know how to protect your script and your server. While not a comprehensive list, this includes some of the common errors.
Your First CGI Program!
Fish get eaten on this page, but with that analogy, you learn how CGI scripting accesses data and handles your forms.

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. Web Programming
  5. CGI
  6. Writing CGIs

©2008 About.com, a part of The New York Times Company.

All rights reserved.