|
- The Common Gateway Interface (known as CGI) is a program used to process the information on a client’s request. The process would open connections to one or more databases in order to obtain the necessary information.
- CGI allows separate process to read data from the HTTP request and write data to the HTTP response. A variety of different languages are used to build CGI programs/CGI scripts, including C, C++, VB, Java, Perl, Tcl, etc.
- Usually, CGI programs must be in a special directory on the web server, often called cgi-bin. Compiled C or C++ programs, Perl scripts, and shell scripts belong to the cgi-bin directory.
|