ArticlesReader.com Menu
Newest Articles
Most Viewed Articles
ArticlesReader.com RSS
Submit Article
Login
Signup
Search the articles

Articles Main Categories
Advice
Animals
Automobiles
Business
Career
Communications
Computer Programming
Computers
Entertainment
Environment
Family
Fashion
Finance
Food
Health & Medical
Home & Garden
Humor
Internet Business
Internet Marketing
Legal
Leisure & Recreation
Marketing
Other
Politics
Reference & Education
Religion
Self Improvement
Sports
Technology & Science
Travel
Writing
Subscribe
Receive alert message from us when new articles submitted to our site for free.

Enter your name

Enter your email

Syndicate

















Related Products
Home::CGI

CGI: What the Heck Is That?

Author : Richard Lowe

Let's unlock a little bit of the mystery about something called
CGI. If it helps any, CGI means Common Gateway Interface. This
is a method which is used to exchange data between the server
(the hardware and software that actually allows you to get to
your web site) and a web client (your browser). CGI is actually
a set of standards where a program or script (a series of
commands) can send data back to the web server where it can be
processed.

Typically, you use standard HTML tags to get data from a person,
then pass that data to a CGI routine. The CGI routine then
performs some action with the data.

Some of the more common uses of CGI include:

- Guestbooks - The CGI routine is responsible for accepting the
data, ensuring it is valid, sending an email acknowledgement
back to the writer, perhaps sending an email to the webmaster,
and creating the guestbook entry itself.

- Email Forms - A simple CGI forms routine just formats the data
into an email and sends it back to the webmaster. More
complicated routines can maintain a database, send an
acknowledgement and validate data.

- Mailing List Maintenance - These routines allow visitors to
subscribe and unsubscribe from a mailing list. In this case, the
CGI routine maintains a database of email addresses, and the
better ones send acknowledgements back to the visitor and
webmaster.

A CGI routine can be anything which understands the CGI
standard. A popular CGI language is called PERL, which is simple
to understand and use (well, compared to other languages). PERL
is a scripting language, which means each time a PERL routine is
executed the web server must examine the PERL commands to
determine what to do. In contrast, a compiled language such as
C++ or Visual Basic can be directly executed, which is faster
and more efficient.

Okay, in a nutshell (and greatly simplified), here's how it
works:

1) You (the webmaster) specify a form tag which includes the
name of the CGI routine.

2) You create HTML tags which retrieves data from your visitors.

3) Each of the input tags includes a variable name. The data
which is retrieved from the visitor (or directly set if the tag
includes the "hidden" qualifier) is placed in the variable name.

4) When the visitor presses the "submit" button, the CGI routine
which was specified in the form tag is executed. At this time,
the CGI routine "takes control", meaning the browser essentially
is waiting for it to complete.

5) This CGI routine can get data from variable names. It
retrieves the data and does whatever action is required.

6) When the CGI routine finishes, it returns control back to the
web client (the browser).

Some important things to remember about CGI routines:

- You can install CGI routines on your own site if your host
allows it - Addr.Com is an example of a web host which allows
for CGI routines. Some web hosts do not allow you to install
your own routines but do provide some pre-written ones to you.
If these are not sufficient for your needs, you can find a
remote hosting service to provide the necessary functions.

- Generally, if you install your own routines they must be
installed in the cgi-bin directory of your site. This is a
special location which allows scripts and programs to be
executed.

- CGI routines work best on Apache-style servers. Windows NT and
Windows 2000 does support CGI, but it tends to be slow and
problematic.

- If you use a remote hosting service, you must remember that
although they appear to be giving you this for free, you are
actually paying a price. Usually they want to display
advertisements, although some of them actually take visitors
away from your site.

- When you write a CGI routine, you have the choice of a
scripting language like PERL or a compiled language such as C++
or Visual Basic. Anything which can execute on the web server is
acceptable.

I hope this short introduction to CGI has cleared up some of the
mystery.


Spam emails More free articles

Related articles


  1. 5 CGI Scripts You Must Use to Turn Your Site Into a Powerhouse
  2. Clever Profit Growth Software
  3. Why Aren't You Using CGI
  4. Use CGI to Automate Your Web Site
  5. CGI: What the Heck Is That?
  6. CGI Security Issues
  7. How to Stop Digital Thieves with CGI
  8. Quick Intro to PHP Development
  9. Better Writing: What Works and What Doesn't
  10. Password Protection and File Inclusion With PHP
  11. Autoresponders With PHP
  12. Track your visitors, using PHP
  13. PHP On-The-Fly!
  14. PHP and Cookies; a good mix!
  15. Screen scraping your way into RSS
  16. Mastering Regular Expressions in PHP
  17. ASP, CGI and PHP Scripts and Record-Locking: What Every Webmaster Needs To Know
  18. Open Source Scripts
  19. this is a test
  20. An Extensive Examination of the PHP:DataGrid Component: Part 1
  21. PHP:Form Series, Part 1: Validators & Client-side Validation
  22. Design an Online Chat Room with PHP and MySQL
More related feeds
OK...so what in the heck happened here (eBay auction.
http://cgi.ebay.com/ws/eBayISAPI.dll...MEWA:IT&ih=018.

What the heck...I'll do it!
http://cgi.ebay.com/Gothic-Bride-Halloween-Goth-Doll-OOAK-Barbie-PASSION_W0QQitemZ150300074630QQcmdZViewItem?hash=item150300074630&_trkparms=72%3A1205%7C39%3A1%7C66%3A2%7C65%3A12%7C240%3A1308&_trksid=p3286.c0.m14 ...

Advertise All Your Websites & Affiliate Programs to Thousands on 1 URL
... I was skeptical. the DVD delivers on what it promises, then why the HECK is Russell giving it away for FREE? So I ordered a copy and checked it out. And, believe me, I was totally blown away. http://www.adminder.com/c.cgi? ...

Indiana Jones and the Kingdom of the Crystal Skull Review
I was initially heartened by Spielberg's pre-release interviews, where he claimed he was largely eschewing CGI to do 'Kingdom of the Crystal Skull' old school. Fat chance. Much of the new Indy looks like it was ripped from one of Lucas ...

Masters Thesis
Below is link to my Masters Thesis, "The LEED Guidelines: A Framework for the Development of Green Buildings and Sites" http://www.ohiolink.edu/etd/send-pdf.cgi/HECK%20GREGORY%20BRYAN.pdf?ucin1060887850 Thanks.

CGI: What the Heck Is That? by Richard Lowe
Let's unlock a little bit of the mystery about something called CGI. If it helps any, CGI means Common Gateway Interface. This is a method which is used to exchange data between the server (the hardware and software that actually allows ...

Building search queries in Bugzilla
This is mostly a self-note but heck, maybe someone will reach this post via Delver (or Google), so I'm all about sharing. Anyway, we're using (for now) Bugzilla and I tried to get all the "open" bugs for my team with status equal to X,Y ...

[Research] Automated Online Sequential Isotope Labeling for ...
Quantitation of protein abundance is a vital component in the proteomic analysis of biological systems, which can be achieved by differential stable isotopic labeling. To analyze tissue-derived samples, the isotopic labeling can be ...

[Research Papers] Cooperative action of NC2 and Mot1p to regulate ...
Promoter recognition by TATA-binding protein (TBP) is an essential step in the initiation of RNA polymerase II (pol II) mediated transcription. Genetic and biochemical studies in yeast have shown that Mot1p and NC2 play important roles ...

No way in heck are these legit...
http://cgi.ebay.com/BIGFOOT-Monster-...d=p3286.c0.m14.

 


 

© 2007 articlesreader.com - All Rights Reserved