Thread: CGI ect..

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    70

    CGI ect..

    Ok is cgi just me not compiling it and using like perl?
    and what is PHP?

  2. #2
    Registered User Zeeshan's Avatar
    Join Date
    Oct 2001
    Location
    London, United Kingdom
    Posts
    226
    Better post your question on the General Board...

    You'll get more attention there..

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    41
    CGI is just the name of the gateway between your program/script and the webserver. The webserver calls your program (weither it is a compiled C application or a perl script or something else doesn't matter) and sends the result back to the browser (in text).
    PHP is something similar but not using the CGI interface. It's directly built for dynamic webpages and is called by the webserver whenever a *.php file is requested (this can be configured for the webserver) while CGI applications can be everything that is executable and in a special directory (usually /cgi-bin).
    C is one of the worst choices when it comes to CGI applications because of it's lack of easy string manipulation and CGI is all about string manipulation (everything you do in a HTML browser is just made from strings). Speed and lowlevel abilities are not critical for 99% of all internet applications.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CGI program help please
    By Lince in forum C Programming
    Replies: 3
    Last Post: 08-01-2007, 01:31 AM
  2. cgi - c++ returns image
    By terracota in forum C++ Programming
    Replies: 1
    Last Post: 08-04-2004, 09:41 PM
  3. testing a cgi script on my computer
    By Bigbio2002 in forum C Programming
    Replies: 1
    Last Post: 12-14-2003, 07:26 PM
  4. CGI Mailing
    By sean in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 04-14-2003, 09:56 PM
  5. Problem with cgi script - can't rename files
    By bjdea1 in forum C Programming
    Replies: 2
    Last Post: 12-12-2001, 04:09 PM