Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

cgi?

Posted on 1998-02-15
1
Medium Priority
?
269 Views
Last Modified: 2013-12-25
is cgi a rather simple language to learn?  Is it even a language?  I've heard all kinds of things about cgi and I want to know how to write it, what it can do, and what you need to write it.  Is their something that cgi is comparable too?  
0
Comment
Question by:cfrericks
1 Comment
 
LVL 5

Accepted Solution

by:
julio011597 earned 120 total points
ID: 1831992
CGI is but a _protocol_ stating what kind of communication can happen between a web server and an external program (the so called "CGI" program).

The CGI protocol basically states that the web server writes to the standard input stream of the program, and reads answers back from the standard output stream of program.
It also contains rules on what kind of environment variables (not to be confused with _system_ environment variables) the web server gives to the program, and what kind of status messages and mime type indications the program has to give back together with the document it generates on the fly.

Ok, maybe a bit confusing, but there are books full of this stuff.

And, as you can see, it is NOT a language; instead, you can write the external program in _any_ language you like, provided that the resulting program behaves following the CGI protocol rules.

Hope this makes things a bit clearer,

julio
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

879 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question