Common Gateway Interface Script
3.8 | 56 Votes
What is a CGI file?
A CGI file is a Common Gateway Interface (CGI) script executed by a web server to create dynamic pages. It is typically written in Perl or C programming languages. CGI scripts are often stored in the "cgi-bin" folder within a website directory on a web server and can only be edited if they are not pre-compiled.
CGI scripts are often used for running basic web scripts. Examples include sending email messages from a web form (also called "formmail") and rotating advertisements within a website.