what is cgi programming

后端 未结 6 1075
礼貌的吻别
礼貌的吻别 2021-02-05 06:16

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

相关标签:
6条回答
  • 2021-02-05 06:51

    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

    0 讨论(0)
  • 2021-02-05 07:02

    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.

    0 讨论(0)
  • 2021-02-05 07:03

    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.

    0 讨论(0)
  • 2021-02-05 07:08

    Common Gateway Interface - It is explained here: http://www.openroad.org/cgihelp/cgi.html

    0 讨论(0)
  • 2021-02-05 07:09

    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.

    0 讨论(0)
  • 2021-02-05 07:11

    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.

    http://en.wikipedia.org/wiki/Common_Gateway_Interface

    0 讨论(0)
提交回复
热议问题