Bookmark and share page
Search for supported file types
CGI, Common Gateway Interface Script (.cgi)
The CGI Misc file format
The CGI file extension is assigned to executable files that contain script written in a certain programming language. CGI files typically contain code written in Perl or C. These executable CGI scripts are commonly used to run basic scripts on the internet. This includes changing or rotating advertisements on a web site or sending e-mails through a so-called formmail, a web form that is used for making contact.
Technical details of CGI files
CGI files are saved on a web server. Editing of the file is only possible if it hasn't been compiled beforehand. CGI scripts are the standard protocol that allows external applications and programs to interact with a web server. Thus, requests can be passes from a user's web browser to the according application or software. The web server, in return, sends the requested output back to the web browser. The code inside the CGI file is stored as plain text.
More information about the CGI file format
|Associated programs||Bare Bones BBEdit (Mac)
MacroMates TextMate (Mac)
Microsoft Notepad (Windows)
Richardson EditRocket (Windows, Linux & Mac)
Other Text Editors
|Useful links||Find more information on CGI here|