Common Gateway Interface (CGI) is a standard way for web servers to interface with executable programs installed on a server that generate web pages dynamically.
Such programs are known as CGI scripts or simply CGIs; they are usually written in a scripting language, but can be written in any programming language.