问题描述
我对通用的Web编程语言已经相当了解,但是我现在使用的工具之一是CGI。我只能说CGI脚本的运行速度很慢。
I'm pretty well up to speed on general web programming languages, but one of the tools I'm working with right now is in CGI. All I can tell is that CGI scripts are quite slow.
CGI仍然是当今常用的吗?如果不是,那么它被什么取代了?
是否存在任何仍在使用和活跃使用CGI的细分功能?
Is CGI still commonly used today? If not, what has it been replaced by?
Are there any niche functions in which CGI is still alive and actively used?
推荐答案
CGI已被各种Web编程技术所取代,包括PHP,各种Apache扩展(如mod_perl),各种口味的Java和各种框架(包括Java EE,Struts,Spring等),基于Python的框架(如Django,Ruby on Rails和许多其他Ruby框架以及各种Microsoft技术。
CGI has been replaced by a vast variety of web programming technologies, including PHP, various Apache extensions like mod_perl, Java of various flavors and frameworks including Java EE, Struts, Spring, etc, Python-based frameworks like Django, Ruby on Rails and many other Ruby frameworks, and various Microsoft technologies.
我确定CGI仍用于某物,但是我猜想这只是已经存在多年的少量代码了。 Wikipedia确实提到与CGI类似,但没有严重的性能缺陷。
I'm sure CGI is still used for something, but I'd guess it's mostly just little bits of code that have been sitting around for years. Wikipedia does helpfully mention that FastCGI is similar to CGI but without the massive performance drawbacks.
这篇关于这些天使用了什么CGI脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!