Thread: Making a cgi program!!!

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    17

    Smile Making a cgi program!!!

    Hi friends:

    I made a C program that reads the data in the parallel port. Ok. Now i want to make a cgi program that shows it in a browser.

    I know nothing about HTML. Does anyone have an example where i can know at least how to start it and print some lines?

    Thanks
    Daniel

    A Man can be whatever he wants to
    be

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Does anyone have an example where i can know at least how to start it and print some lines?
    Code:
    #include <stdio.h>
    
    int main(void)
    {
        printf("<html>\n");
        printf("  <body>\n");
        printf("    <p align=center>Woohoo!</p>\n");
        printf("  </body>\n");
        printf("</html>\n");
    
        return 0;
    }
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    17
    Thanks

    A Man can be whatever he wants to
    be

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    This could help for doing anything more complex.
    http://www.boutell.com/cgic/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Replies: 2
    Last Post: 04-04-2008, 09:42 AM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  5. Making a program which....
    By Zophixan in forum C++ Programming
    Replies: 9
    Last Post: 11-01-2002, 09:29 AM