What is exactly meant by CGI programming . If I am writing a cgi program in 'C' ,
in that context , what does the 'cgi' mean ?
Is the servelt environment is an abstraction of classical cgi programming ?
What is exactly meant by CGI programming . If I am writing a cgi program in 'C' ,
in that context , what does the 'cgi' mean ?
Is the servelt environment is an abstraction of classical cgi programming ?
Abbreviation of Common Gateway Interface, a specification for transferring information between a World Wide Web server and a CGI program. A CGI program is any program designed to accept and return data that conforms to the CGI specification. The program could be written in any programming language, including C, Perl, Java, or Visual Basic. CGI programs are the most common way for Web servers to interact dynamically with users. Many HTML pages that contain forms, for example, use a CGI program to process the form's data once it's submitted. Another increasingly common way to provide dynamic feedback for Web users is to include scripts or programs that run on the user's machine rather than the Web server. These programs can be Java applets, Java scripts, or ActiveX controls. These technologies are known collectively as client-side solutions, while the use of CGI is a server-side solution because the processing occurs on the Web server.
See The Common Gateway Interface (CGI) is a standard protocol that defines how webserver software can delegate the generation of webpages to a console application. Such applications are known as CGI scripts; they can be written in any programming language, although scripting languages are often used.
CGI means common gateway interface...It is a web server that receives user request and process that and sends the response back to the user..In CGI for each new user request the new process has been created and process the user request and forward the response back to the user
No, the servlet environment is not an abstraction from it. Servlets are loaded into the JVM when they are first requested and are instantiated/executed/deallocated like any other Java object. The CGI process has the web server invoke an external program (Perl/Ruby/Python interpreter or a C-based CGI app), it runs and then exits completely.
Common Gateway Interface - It is explained here: http://www.openroad.org/cgihelp/cgi.html
The oldest and still very common way to add interactivity to a web page is through a CGI program. Common Gateway Interface(CGI) is a protocol standard that specifies how information can be passed from a Web page through a Web server, to a program, and back from the program to a browser in the proper format. Unfortunately many people confuse the actual program that does a particular task with CGI protocol. In reality, it happens to be a CGI program as it was written to pass information back and forth using CGI specification.