Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>G'day,</p> <p>A web server, e.g. Apache, just sends back static content is response to a client request for content. For example a request for <a href="http://www.myserver.com/index.html" rel="noreferrer">http://www.myserver.com/index.html</a> typically causes the server to open the file and return the content of the file wrapped with the relevant http components.</p> <p>Basically CGI is a technique for generating such web pages dynamically via other applications which are run by the web server on an as-needed basis.</p> <p>The directory cgi-bin is typically used to house the scripts being run.</p> <p>Though it's heavily focused on Perl The book "<a href="http://rads.stackoverflow.com/amzn/click/1565924193" rel="noreferrer">CGI Programming with Perl</a>" has an excellent intro about CGI.</p> <p><strong>Edit:</strong> As asked in the comments below, "if PHP can take care of dynamic content, then what's the need for CGI". There's a few points here.</p> <ol> <li>out of the box, PHP can be pretty slow. CGI, especially in its mod_perl guise, or when using app's built in compiled languages,</li> <li>PHP doesn't have very strong error handling, but this can be worked around,</li> <li>I don't think that there's real support for ASP, Windows app's or DB's, and</li> <li>PHP security is a bit of a worry, e.g. having register_globals enabled, and PHP's flaws are extremely well known.</li> </ol> <p>The design of the PHP language itself also contains many inconsistencies, e.g.</p> <ul> <li>a fairly useless object model,</li> <li>scoping is fairly bad,</li> <li>inconsistent naming, and</li> <li>poor organisation of the standard library.</li> </ul> <p>I believe that PHP5 goes a long way to improving these points.</p> <p>While security is always a concern, with CGI implementations you are able to minimise the security problem in well publicised ways.</p> <p>HTH</p> <p>cheers,</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload