-
web result as input to C
Right now our thinking is to have a webpage for client to input data, and send the data back to the server, which is using linux.
The processing data part is writing in C and our next step is to try to connect these two components.
But I am not sure how that could be done, any suggestions?
Thank you so much.
-
It's done thousands of times a day. Look up HTML forms.
-
PHP is usually used for this kind of stuff, but I assume that your C code will receive the HTTP POST data from standard input. You may even have to parse the POST data, which is of the form value=data&value2=data2, which languages like PHP already do for you.
-
I don't use C for web suff (beware with the overflow buffers, check always all input strings) , however, knowing is liunx, you must have available tons of C libraries for CGI.
Google CGI C programming
And , also you will find some recommendation and best practices like avoid some unsafe standard libraries)
-----------
http://www.uberum.com