CGI

CGI stands for Common Gateway Interface. It is a method through which Web servers can run external programs and even pass data entered on a Web page form to an external program. The external program can also send output back to the Web server, which can then be displayed on a Web page, for example.

Although these external programs are commonly referred to as CGI scripts, they do not necessarily have to be scripts. CGI programs can be written in any language. The most common language for writing CGI scripts in UNIX is Perl. However, CGI can also be written in Python, TCL, shell script, AWK, SED, Java, or even a fully compiled language such as C. A discussion of how to write and use CGI scripts in your Web pages is beyond the scope of this ...

Get Sams Teach Yourself FreeBSD® in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.