What Are CGI Programs?
Common Gateway Interface (CGI) is a standard for interfacing external programs with web servers. A plain HTML document that a Web server supplies is static, which means it exists in a constant state: a text file that doesn’t change. A CGI program, on the other hand, is executed in real-time, so that it can output dynamic information. For example, let’s say that you wanted to “hook up” your database to the World Wide Web, to allow people from all over the world to query it. Basically, you need to create a CGI program that your web server will execute to transmit information to the database engine, and receive the results back again and display them in a web browser.