The Common Gateway Interface


The steering wheel, the faucet knob, and the remote control are all common interfaces to everyday objects: cars, running water, the television.

Why then, with a name like the Common Gateway Interface, is CGI so elusive? Common? What's so common about CGI? and A gateway to what? are the obvious questions. The answers lie in the continual effort to extend the functionality of information servers, particularly those used on the World Wide Web.

The Common Gateway Interface is simply this: a way of passing information between an information server and some other program. The other program is called a "gateway" because it often sits between the information server and another resource, such as a database.

CGI adds to the functionality of an information server without having to change the server itself. Once a server implements the interface, new capabilities can be added through the use of new gateways, which from here on will be referred to as CGI programs.

CGI Programs:

CGI Resources: