- Featured Columnists
Table of Contents
- Web Basics
- Publishing on the Web: Putting Files on the Server
- Web Design Process and Workflow
- Project Management
- Mark My WWWord: HTML and XHTML
- Standards Compliance
- Meta Tags and Search
- Enhancing Web Page Interaction
- Web Graphics
- Web Page Optimization
- Overview of Servers
- Server Programming Basics
- Careers in Web Design
- Intellectual Property for Web Designers
Last updated Oct 17, 2003.
CGI (Common Gateway Interface) is an older technology than PHP, JSP, ASP, and .NET that uses the CGI-bin directory to execute server-side applications using supported languages including Perl, Python, and C++. It's the convention for running programs, software, or gateways using an HTTP server. Despite its age, many still continue to use it because of its easy set up.
CGI communicates with a script on the server side and dynamically creates the output page. Though CGI is often associated with Perl, it still has its own identity. When CGI first appeared on the scene, administrators used Perl because it was the language they knew well at the time and the two became closely associated.
Web servers with CGI capabilities typically have a directory called "/cgi-bin." The name might be slightly different depending on the Web server and how it is set up. A CGI script often uses the .cgi extension.
A disadvantage of using CGI is each executed script starts a new process, which can slow down a Web site's server.