C CGI Interpreter

This is a discussion on C CGI Interpreter within the C Programming forums, part of the General Programming Boards category; I have searched for one of these for a long time but never found anything past PERL and BASIC. does ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    83

    C CGI Interpreter

    I have searched for one of these for a long time but never found anything past PERL and BASIC. does anyone know where i can get one. thank ahead of time.
    "What this country needs is more free speech worth listening to." - -Hansell B. Duckett

  2. #2
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001

    ??

    What exactly do you mean by interpreter?
    CGI works with web pages, and is interpreted by the server. It is written usually in perl (don't know about basic), and it could be written in C (not as easily, no std functions to deal with html output besides hacking this fileOut<<"<html><head>......"
    so could you be specific on what you want this 'interpreter' to do?
    PHP and XML
    Let's talk about SAX

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    83

    whatta U mean.

    the interpreter interprets the language...im not sure i know what u mean. when u write CGI in perl you have to have a PERL interpreter. if you write it in C you have to have a C interpreter. my web server don't have any built in interpreters.
    "What this country needs is more free speech worth listening to." - -Hansell B. Duckett

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    the interpreter interprets the language...im not sure i know what u mean. when u write CGI in perl you have to have a PERL interpreter. if you write it in C you have to have a C interpreter. my web server don't have any built in interpreters.
    This is one of the reasons Perl is used more than C, that and Perl's string handling goodness. C is a compiled language, so you don't need an interpreter when you write CGI in C. The problem with this is security, Perl scripts can be viewed easily while C programs need only the binary. One could easily write in some nasty virus and run a C CGI program without anyone knowing about the virus.

    >It is written usually in perl (don't know about basic)
    Perl, UNIX shell scripts, C, C++, FORTRAN, BASIC, LISP, etc...

    -Prelude
    My best code is written with the delete key.

  5. #5
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    check active perl, i don't remember the website, but if you own your server then you can install it and run cgi scripts written in perl on it. IF you're going to make it in C, then that's all you need. Just make an exe as far as i know. You may want to ask around boards for internet (specifically backend) development to see how you would go about passing data to the exe from the page. Otherwise it shouldn't be too hard.
    PHP and XML
    Let's talk about SAX

  6. #6
    Unregistered
    Guest

    CGI in C

    Try this library. I use it all the time...

    http://www.eekim.com/software/cgihtml/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Interpreter Features Question
    By audinue in forum C Programming
    Replies: 0
    Last Post: 10-19-2008, 08:29 AM
  2. CGI program help please
    By Lince in forum C Programming
    Replies: 3
    Last Post: 08-01-2007, 02:31 AM
  3. cgi - c++ returns image
    By terracota in forum C++ Programming
    Replies: 1
    Last Post: 08-04-2004, 10:41 PM
  4. CGI Mailing
    By sean in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 04-14-2003, 10: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21