magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1999 > 04 > Webmaster's Domain

Is CGI Dead?

In this "back to basics" issue of Web Techniques it seems appropriate to look back at the Common Gateway Interface (CGI) protocol and take stock. Six years ago (almost an eternity in Web terms) CGI's package of rules and programming conventions revolutionized the embryonic Web, turning boring, static HTML documents into exciting, dynamic documents, and, as a side effect, catapulting Perl from an obscure UNIX sysadmin's scripting language into a well-respected software development tool.

Without having exact statistics (which are impossible to derive), it's fair to say that static HTML files account for a minority of the documents on the Web, dwarfed by the infinite variations on dynamic pages emitted by search engines, database interfaces, news gateways, media outlets, and more specialized programs. All these dynamic pages are driven by software wired either directly or indirectly into a Web server. A significant fraction, possibly the majority, of these programs use the CGI protocol.

But CGI is an archaic technology. It's heavily tied to assumptions about the UNIX operating system, particularly about using environment variables. The protocol is inefficient because it requires a new process to be respawned each time a page is served. Furthermore, the protocol is severely limited in scope because it restricts scripts to interacting with the Web server during the content-generation phase of the transaction and does not allow scripts to intervene in other interesting operations, such as user authentication and URL-to-filename translation.




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2