CGI PROGRAM

  

Copyright © Philip M. Parker, INSEAD. Terms of Use.

CGI PROGRAM

Specialty Definition: CGI PROGRAM

DomainDefinition

Computing

CGI program (Often "CGI script") A program running on a web server to produce dynamic content, usually an HTML web page, in response to a user's request. The Common Gateway Interface specification defines the interface between the web server and such programs. The program can access any data that a normal application program can, however the facilities available to CGI programs are usually limited for security. Although CGI programs can be compiled programs, they are more often written in a (semi) interpreted language such as Perl, or as Unix shell scripts, hence the name "CGI script". Here is a trivial CGI script written in Perl. (It requires the "CGI" module available from CPAN). #!/usr/bin/perl use CGI qw(:standard); print header, start_html, h1("CGI Test"), "Your IP address is: ", remote_host(), end_html; When run it produces an HTTP header and then a simple HTML page containing the IP address or hostname of the machine that generated the initial request. If run from a command prompt it outputs: Content-Type: text/html Untitled Document <BODY><H1>CGI TestYour IP address is: localhost The <b>CGI program</b> might be saved as the file "test.cgi" (or test.pl) in the appropriate directory on a web server, e.g. "/home/httpd/cgi-bin/". A user could then type the appropriate URL, e.g. http://www.acme.com/cgi-bin/test.cgi, into their web browser to get the program to run and a custom page produced for them. Early web servers required all CGI programs to be installed in one directory called cgi-bin but it is much better to keep them with the HTML files to which they relate unless they are truly global to the site. All modern web servers make this easy to do. (2000-06-23). <span style="background-color: #FFFFCC">Source: <a href="../../../credits/foldoc.html#" target="new" onclick="window.open('../../../credits/foldoc.html','','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=600,height=400'); return(false);">The Free On-line Dictionary of Computing</a>.</span></td></tr><tr><td colspan="2" valign="top" style="border-top-style: solid; border-top-color: gray"><p align="center"><span style="background-color: #FFFFCC">Source: compiled by <a href="../../../credits/editor.html#" target="new" onclick="window.open('../../../credits/editor.html','Editor','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=600,height=400'); return(false);">the editor</a> from <A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=dictionary&mode=books" target="_blank">various references</A>; see credits.</span></p></td></tr></table></div><p align="right"><span style="background-color: #f1f1fd"><a href="#top">Top</a></span>     </p><a name="Crossword"></a><div align="center"><table width="90%"><tr><td align="center"><h2>Crosswords: CGI PROGRAM</h2></td></tr><tr><td><b>Specialty definitions using "CGI PROGRAM"</b>: <a href="../CG/CGI+script.html">CGI script</a>, <a href="../Co/Common+Gateway+Interface.html">Common Gateway Interface</a> ♦ <a href="../We/WebObjects.html">WebObjects</a>. (<A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=Crossword Dictionary&mode=books" target="_blank">references</A>)</td></tr></table></div><p align="right"><span style="background-color: #f1f1fd"><a href="#top">Top</a></span>     </p><a name="InternetFrequency"></a><H2 align="center">Frequency of Internet Keywords: CGI PROGRAM</H2><div align="center"><table width="90%" cellpadding="3"><tr><td>The following statistics estimate the number of searches per day across the major English-language search engines as identified by various trade publications. Hyperlinks lead to commercial use of the expression at <A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=CGI PROGRAM&mode=blended" target="_blank">Amazon.com</A>.<br> </td></tr></table></div><table width="50%" align="center" cellpadding="4"><tr><td width="35%" valign="bottom" style="border-bottom-style: solid; border-bottom-color: gray"><b>Expression</b></td><td width="10%" style="border-bottom-style: solid; border-bottom-color: gray" align="right"><b>Frequency<br>per Day</b></td></tr><tr><td><h4 style="margin-top: 0; margin-bottom: 0"><A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=CGI PROGRAM&mode=blended" target="_blank">cgi program</a></h4></td><td align="right">146</td></tr><tr><td><h4 style="margin-top: 0; margin-bottom: 0"><A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=CGI PROGRAM&mode=blended" target="_blank">free cgi program</a></h4></td><td align="right">4</td></tr><tr><td><h4 style="margin-top: 0; margin-bottom: 0"><A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=CGI PROGRAM&mode=blended" target="_blank">cart cgi program shopping</a></h4></td><td align="right">3</td></tr><tr><td><h4 style="margin-top: 0; margin-bottom: 0"><A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=CGI PROGRAM&mode=blended" target="_blank">cgi program script</a></h4></td><td align="right">2</td></tr><tr><td><h4 style="margin-top: 0; margin-bottom: 0"><A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=CGI PROGRAM&mode=blended" target="_blank">bin cgi program</a></h4></td><td align="right">2</td></tr><tr><td colspan="2" valign="top" style="border-top-style: solid; border-top-color: gray" align="center"><span style="background-color: #FFFFCC">Source: compiled by <a href="../../../credits/editor.html#" target="new" onclick="window.open('../../../credits/editor.html','Editor','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=600,height=400'); return(false);">the editor</a> from <A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=english expressions&mode=books" target="_blank">various references</A>; see credits.</span></td></tr></table><p align="right"><span style="background-color: #f1f1fd"><a href="#top">Top</a></span>     </p><A name="Anagrams"></a><H2 align="center">Anagrams: CGI PROGRAM</H2><div align="center"><table width="90%"><tr><td colspan="2"><h3>Scrabble® Enable2K-Verified Anagrams</h3></td></tr><tr><td width="3%"></td><td><b>Words within the letters "a-c-g-g-i-m-o-p-r-r"</b></td></tr><tr><td></td><td><p style="margin-left: 30" align="justify"><b>-2 letters</b>: picogram.</p></td></tr><tr><td></td><td><p style="margin-left: 30" align="justify"><b>-3 letters</b>: grogram, program.</p></td></tr><tr><td></td><td><p style="margin-left: 30" align="justify"><b>-4 letters</b>: carrom, orgiac, picaro.</p></td></tr><tr><td></td><td><p style="margin-left: 30" align="justify"><b>-5 letters</b>: aggro, amigo, armor, campi, campo, cargo, carom, carpi, cigar, copra, corgi, coria, cramp, crimp, gamic, gramp, imago, macro, magic, micra, micro, moira, orgic, pargo, pirog, prima, primo, prior, rigor.</p></td></tr><tr><td width="3%"> </td><td><b>Words containing the letters "a-c-g-g-i-m-o-p-r-r"</b></td></tr><tr><td> </td><td><p style="margin-left: 30" align="justify"><b>+3 letters</b>: m<B>i</B>crograp<B>h</B>i<B>n</B>g.</p></td></tr><tr><td colspan="2" align="center"><span style="background-color: #FFFFCC">Source: compiled by <a href="../../../credits/editor.html#" target="new" onclick="window.open('../../../credits/editor.html','Editor','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=600,height=400'); return(false);">the editor</a> from <A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=anagrams&mode=books" target="_blank">various references</A>; see credits.</span><br><br><font size="1"><A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=scrabble&mode=toys">SCRABBLE</a>® is a registered trademark. All intellectual property rights in and to the game are owned in the U.S.A and Canada by Hasbro Inc., and throughout the rest of the world by J.W. Spear & Sons Limited of Maidenhead, Berkshire, England, a subsidiary of Mattel Inc. Mattel and Spear are not affiliated with Hasbro.</font></td></tr></table></div><p align="right"><span style="background-color: #f1f1fd"><a href="#top">Top</a></span>     </p><a name="Orthography"></a><H2 align="center">Alternative Orthography: CGI PROGRAM<br></H2><div align="center"><table width="90%" cellpadding="4"><br><tr><td valign="top"><font size="+1"><b>Hexadecimal</b> (or equivalents, 770AD-1900s)</font> (<A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=Hexadecimal&mode=books" target="_blank">references</A>)<h3 align="center">43 47 49      50 52 4F 47 52 41 4D</h3></td></tr><tr><td valign="top"><font size="+1"><b>Leonardo da Vinci</b> (1452-1519; backwards)</font> (<A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=Leonardo da Vinci&mode=books" target="_blank">references</A>)<p align="center"><img src="../../../coreimages/Misc/Leonardo/M.jpg" width="25" height="99"><img src="../../../coreimages/Misc/Leonardo/A.jpg" width="25" height="99"><img src="../../../coreimages/Misc/Leonardo/R.jpg" width="25" height="99"><img src="../../../coreimages/Misc/Leonardo/G.jpg" width="25" height="99"><img src="../../../coreimages/Misc/Leonardo/O.jpg" width="25" height="99"><img src="../../../coreimages/Misc/Leonardo/R.jpg" width="25" height="99"><img src="../../../coreimages/Misc/Leonardo/P.jpg" width="25" height="99">    <img src="../../../coreimages/Misc/Leonardo/I.jpg" width="25" height="99"><img src="../../../coreimages/Misc/Leonardo/G.jpg" width="25" height="99"><img src="../../../coreimages/Misc/Leonardo/C.jpg" width="25" height="99"></p></td></tr><tr><td valign="top"><font size="+1"><b>Binary Code</b> (1918-1938, probably earlier)</font> (<A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=Binary Code&mode=books" target="_blank">references</A>)<h3 align="center">01000011 01000111 01001001 00100000 01010000 01010010 01001111 01000111 01010010 01000001 01001101</h3></td></tr><tr><td valign="top"><font size="+1"><b>HTML Code</b> (1990)</font> (<A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=HTMl Code&mode=books" target="_blank">references</A>)<h3 align="center">&#67 &#71 &#73 &#32 &#80 &#82 &#79 &#71 &#82 &#65 &#77</h3></td></tr><tr><td valign="top"><font size="+1"><b>ISO 10646</b> (1991-1993)</font> (<A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=ISO 10646&mode=books" target="_blank">references</A>)<h3 align="center">0043 0047 0049      0050 0052 004F 0047 0052 0041 004D</h3></td></tr><tr><td valign="top"><font size="+1"><b>Encryption</b> (beginner's substitution cypher):</font> (<A HREF="http://www.amazon.com/exec/obidos/external-search?tag=icongroupinterna&keyword=Encryption&mode=books" target="_blank">references</A>)<h3 align="center">374143250524941523547</h3></td></tr></table></div><p align="right"><span style="background-color: #f1f1fd"><a href="#top">Top</a></span>     </p><a name="Biblio"></a><script language="javascript" src="/js/xparse.asp?q=CGI PROGRAM&sec=importtxt"></script><script language="javascript" src="/js/xparse.asp?sec=init"></script><script language="javascript" src="/js/xparse.asp?q=CGI PROGRAM&sec=trade&mode=auction"></script><script language="javascript" src="/js/xparse.asp?q=CGI PROGRAM&sec=importword"></script><script language="javascript" src="/js/xparse.asp?q=CGI PROGRAM&sec=articles"></script><script language="javascript" id=sup></script><script language="javascript" src="/js/xparse.asp?sec=support&q=CGI PROGRAM"></script><center><script type="text/javascript"> google_alternate_ad_url="http://www.websters-online-dictionary.org/js/googlead.asp?kw=CGI PROGRAM";google_ad_client="pub-7500086874932040"; google_ad_width=728; google_ad_height=90; google_ad_format="728x90_as"; google_color_border="336699"; google_color_bg="FFFFFF";google_color_link="0000FF";google_color_url="008000"; google_color_text="000000"; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></td></tr></table></div><SCRIPT language=JavaScript src="../../../js/FloatingMenu.js" type=text/javascript></SCRIPT><SCRIPT language=JavaScript>addmenu(menu=["FloatMenu",,,185,1,"",style2,,"left",effect,,,,,,,,,,,,,"  <b>C</b>GI PROGRAM (Back to Top)","#Top",,,0,"  <b>C</b>rosswords","#Crossword",,,0,"  <b>E</b>xpressions: Internet","#InternetFrequency",,,0,"  <b>A</b>nagrams","#Anagrams",,,0,"  <b>O</b>rthography","#Orthography",,,0,"  <b>B</b>ibliography","#Biblio",,,0]);dumpmenus()</SCRIPT><SCRIPT language=JavaScript src="../../../js/MainMenu.js" type=text/javascript></SCRIPT><SCRIPT LANGUAGE="JavaScript">var rotate_delay = 3000; </SCRIPT><br><br><h4 align="center" style="margin-bottom: 0"><font color="#800000" size="4">INDEX</font><br></h4><font size="1"><div align="center" style="margin-top:0; margin-bottom:0"><table border="1" bgcolor="#e5f6ff" bordercolor="#FFFFFF"><tr><td valign="top"><font size="2"><b> 1.</b> <a href="#Crossword">Crosswords</a></font> <br><font size="2"><b> 2.</b> <a href="#InternetFrequency">Expressions: Internet</a></font> <br><font size="2"><b> 3.</b> <a href="#Anagrams">Anagrams</a></font> <br><font size="2"><b> 4.</b> <a href="#Orthography">Orthography</a></font> </td><td valign="top"><font size="2"><b> 5.</b> <a href="#Biblio">Bibliography</a></font> </td></tr></table></div></font><br><br><center><form style="margin-bottom: 0" action="/search/" method="POST"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td rowspan="3" width="50%"><p style="margin-top: 0; margin-bottom: 0" align="right"><img border="0" src="/coreimages/MISC/webster.gif" width="60" height="70">  </p></td><script language="JavaScript" type="text/javascript" src="/js/sbox.asp"></script></table></form></center><p align="center" style="margin-top: 4"><font size="1">Copyright © <script language="Javascript" src="/js/date.js"></script> Philip M. Parker, INSEAD. <a href="/credits/termsofuse.html">Terms of Use</a>.</font></p><p> </p><!-- COMPLETE !--> <!-- Start Quantcast tag --><script type="text/javascript">_qoptions={qacct:"p-cbhPKkkl9yeZg"};</script><script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script><noscript><img src="http://pixel.quantserve.com/pixel/p-cbhPKkkl9yeZg.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/></noscript><!-- End Quantcast tag --></body></html>