answersLogoWhite

0


Best Answer

CGI is a standard protocol for interfacing external application software with a Web server [1]. It has been widely used for implementing dynamic generated pages on the Web.

There are advantages and disadvantages to CGI programs. One advantage of CGI programs is that they are language independent [2]. CGI programs can be written in any language that allows one to write normal programs since they are executed in the same way as the normal programs. Another advantage of CGI is that it's a very simple interface [3]. It's not necessary to have any special library to create a CGI program, or write programs using a particular API. Instead, CGI programs rely on the standard concepts of standard input, standard output, and environment variables to communicate with the Web server.

There are also disadvantages to CGI programs. One disadvantage is that CGI programs are slow since they need to fork a new process for every HTTP request and the database connection must be reopened for the next instance of the program, which is quite costly [4]. One solution is to use FastCGI instead of CGI. FastCGI implements a technique using which forking one process for every request is not necessary, therefore can improve the performance.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the advantages and disadvantages of CGI programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the disadvantages of boo programming language?

advantages of boo


How can one learn CGI programming?

One can learn about CGI programming from books. They can search books from amazon using CGI programming as a key word. They can also learn about CGI programming from websites like cgi101.


What are the disadvantages and advantages of Planning Programming Budgeting System?

What are the disadvantages of ppbs


What are the advantages and disadvantages of algorithm?

Advantages of algorithms are that they are easy to debug, there is a clear set of instructions that can be followed, and they are independent of programming language. Disadvantages of algorithms are that they are time consuming and complicated to create.


Advantages and disadvantages of using flow charts instead of text-based programming?

There are quite a few different advantages and disadvantages of using flow charts instead of text-based programming. One pro is that this is a visual aid that helps explain your ideas.


What are the advantages and disadvantages in using the radio?

Television advantages: wide service coverage, better quality TV, service recovery during breakdown, wide programming selections. Television disadvantages: Additional cost for special programming packages, short valuable add-on. Radio advantages: ...ask someone else...


What are advantages and disadvantages of oop 'object oriented programming?

The advantages are Data Encapsulation Data Hiding Easy to maintain the code Reuseability of classes And disadvantages are wastage of time in case of small projects or codes


How can one learn about CGI scripts?

Many websites provide information about CGI scripts. Websites such as HowStuffWorks, CGI Programming 101, and Perlmeme allow one to learn about CGI scripts.


Explain in detail the role played by CGI programming in web programming?

tow tow tow


What are the advantages and disadvantages of event driven programming?

Advantages: Ease of development, Flexibility, Simplicity and suitable for graphical interfaces. Disadvantages: Complex, Hard to control, Time consuming to get event loops and event handlers running.


What is the most common programming language of CGI scripts?

Perl


Which is the most popular programming language used for CGI programs?

Perl is the most popular language used for CGI programs.