Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

CGI-bin on Web Server

  • 11-08-2004 8:42am
    #1
    Closed Accounts Posts: 1,541 ✭✭✭


    Hello Everyone,

    Im looking for a bit of help. I am new to the game of setting up webservers. However I have managed to install an Apache webserver on Windows XP.

    I have a number of question which I hope someone out there may know:

    (1) What is the best way to go about setting up a CGI-bin on an Apache webserver on XP.

    (2) What I want to do is to ask a user to click Button1 or Button2 on my HTML website homepage. If the user presses button1 I want to call a program in my CGI-bin to write the letter A to a text file on my server PC desktop. If the user presses the other button (button2) I want to call a program in my CGI-bin to write "B" to the same text file(overwrite it if possible). Whatever the user presses must be sent/saved to a text file on the hard drive of the server PC. What is the best way of doing this?

    (3) I really want to use a C program(as opposed to PERL) in Cgi-bin to send "A "to a text file whenever button1 is pressed and "B" to the same text file whenever button2 is pressed.

    (a) Is it possible to run a C program from the Cgi-bin and execute it from the internet(I am using my own server).

    (b) Does the server or Cgi-bin have to be configured in a special way to execute C programs?

    (c) If it is possible then how should I best compile the C/C++ to suit this application? How do I transfer my C files from my folder on desktop to the Cgi-bin when I am ready to do so?

    (d) Do I need to install special privilages to create a text file on the server HD from the internet? How is this done?

    Any hepl or advice appreciated. Not many people seem to know much about CGI applications using C. Like I said before all I want to do is ask the user to click one of two buttons on my website and then write A to a text file on my server PC desktop if he/she presses tthe 1st button or write B to a text file on my server PC desktop if she/he presses the 2nd button. There is only one single text file but I could use 2 different CGI programs for each button. Thanks for taking time to read this and I hope someone can help!!

    :)


Advertisement