Advantage and Diadvantage of CGI

Advantage of CGI

Some of the advantages of Common Gateway Interface are:

  1. CGI scripts are portable in nature.
  2. They are language independent, as we can write them in any language, instead of being stuck to any specific language.
  3. CGI can perform both easy and complex tasks efficiently, which makes it scalable as well.
  4. It also helps in dynamic communication as well.

Diadvantage of CGI

Along with advantages, CGI or Common Gateway Interface also has some of its disadvantages. Those are:

  1. The CGI scripts may create a lot of traffic since there are a lot of requests from the client-server.
  2. Sometimes, it maybe very complex to design and program the CGI scripts.
  3. CGI programs maybe a little vulnerable regarding the security considering how freely they are available.

Historical context and evolution of CGI.

When you click on any of the links on the webpage, your browser contacts the HTTP web server and demands the URL that is, the filename, and the web server passes the URL and looks for the filename, if it finds that file, it will send it back to the browser otherwise sends an indicating message that you have requested a wrong file. Then, the web browser takes a response from the web server and displays either the received file or the error message. However, it is possible to set the HTTP server so that whenever a file in a certain directory is requested, that file is not sent back. Instead, it is executed as a program. And, whenever that program shows any output, it’s sent back to the browser to display. So, this function is called Common Gateway Interface or CGI, and the program scripts are called CGI Scripts. These CGI scripts can be a Python script, PERL script, Shell script, C or C++ program, etc.

Similar Reads

What is CGI?

CGI or Common Gateway Interface, is the industry-accepted acronym for a set method that is used to define how information is exchanged between the web server and a custom script. It is a protocol that defines how web servers and external programs or scripts can communicate to generate dynamic content on the World Wide Web....

CGI Architeture

...

Historical Context of CGI

In 1993, the standard for invoking command line executables was written by the National Center for Supercomputing Applications (NCSA) team and posted to the www-talk mailing list. It was embraced by the other Web server creators, and ever since then, Web servers have used it as a standard. A work group headed by Ken Coar was established in November 1997 to formalize the NCSA definition of CGI. This effort led to the creation of RFC 3875, which described CGI Version 1.1. Specifically mentioned in the RFC are the following contributors:...

Evolution of CGI

Since it was first introduced in the early 1990s, the Common Gateway Interface (CGI) has seen tremendous development. The evolving demands of web development and technological advancements have influenced its progress. An overview of its evolution is shown below:...

Advantage and Diadvantage of CGI

Advantage of CGI...

Steps to Run and Configure the CGI Script

Step 1: ENABLE CGI SUPPORT IN APACHE...

Contact Us