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 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.