Hi again all,
Well I successfully managed to compile and run my very first 'hello world' c program on my UNIX web server by giving it a .cgi extension and pointing my browser at it.
I was so happy I decided to use C for my small cgi programs I write from now on (I know C a little better than Perl at the moment).
Now I have a couple of questions:
1. How do I retrieve the information being passed into my C/C++ cgi program via a web browser? Does anyone have any sample code for parsing the form via POST/GET methods?
2. I understand that it is possible to incoporate snippets of Perl code into a C/C++ program. But how do I do this?
3. Finally, could I expect my C/C++ cgi programs to run faster than the Perl script equivalents (because they are already compiled)???
Many thanks in advance...
Nick
programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
Well I successfully managed to compile and run my very first 'hello world' c program on my UNIX web server by giving it a .cgi extension and pointing my browser at it.
I was so happy I decided to use C for my small cgi programs I write from now on (I know C a little better than Perl at the moment).
Now I have a couple of questions:
1. How do I retrieve the information being passed into my C/C++ cgi program via a web browser? Does anyone have any sample code for parsing the form via POST/GET methods?
2. I understand that it is possible to incoporate snippets of Perl code into a C/C++ program. But how do I do this?
3. Finally, could I expect my C/C++ cgi programs to run faster than the Perl script equivalents (because they are already compiled)???
Many thanks in advance...
Nick

programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.