什么是cgi编程 [英] what is cgi programming

查看:96
本文介绍了什么是cgi编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CGI编程的确切含义。如果我在'C'中编写cgi程序,

What is exactly meant by CGI programming . If I am writing a cgi program in 'C' ,

在这种情况下,'cgi'是什么意思?

in that context , what does the 'cgi' mean ?

servlt环境是经典cgi编程的抽象吗?

Is the servelt environment is an abstraction of classical cgi programming ?

推荐答案

Common Gateway Interface的缩写,是针对在万维网服务器和CGI程序之间传输信息。 CGI程序是旨在接受和返回符合CGI规范的数据的任何程序。该程序可以用任何编程语言编写,包括C,Perl,Java或Visual Basic。
CGI程序是Web服务器与用户动态交互的最常见方式。例如,许多包含表单的HTML页面都使用CGI程序在提交表单后处理其数据。向Web用户提供动态反馈的另一种日益普遍的方法是包括在用户计算机而非Web服务器上运行的脚本或程序。这些程序可以是Java applet,Java脚本或ActiveX控件。这些技术统称为客户端解决方案,而CGI的使用是服务器端解决方案,因为处理发生在Web服务器上。

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.

这篇关于什么是cgi编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆