Common Gateway Interface (CGI), inside the the Context of Internet improvement, is an interface for jogging Executables via a web-Server. In most intances, this indicates taking an HTTP request and passing it to an Software to be able to supply a dynamically-generated HTML Web Page back to a browser. While quite a lot any program that can run on an internet server is usable as a CGI script, Perl is the most famous language.
The wellknown for CGI is described in RFC 3875.
In the early days of net development CGI cHanged into one of the few Methods to offer Interactivity in a web utility. It become maximum commonplace on Apache, but ports were made to run CGI on IIS as nicely.
The most commonplace usage of CGI is using Scripting Languages, and so it’s common to consult this as sTrolling a CGI script. CGI applications and Scripts are usually gathered in a Folder named /CGI-Bin/.
The most important drawback of CGI is that every page load incurs overhead with the aid of having to load the Packages into reminiscence. Data can not effortlessly be Cached in Memory among web page masses. Because of this drawback, many Builders have moved to software servers that remain going for walks. However, there may be a massive Current Code base, lots of it in Perl. Proponents of CGI argue that it is simple, sTable, and an exCellent choice for certain programs, particularly regarding responsibilities where Perl excels, such has textual content coPing with. Workarounds also keep away from loading in the Perl or PHP runtime for every request by such as the runtime within the net server (mod_perl and mod_php in Apache), or other solutions including FastCGI (separate Procedures that cope with more than one requests).
Your Score to Common Gateway Interface article
Score: 5 out of 5 (1 voters)
Be the first to comment on the Common Gateway Interface
tech-term.com© 2023 All rights reserved