Can someone tell me the procedure that i have to follow to make a simple online compiler,which will have:
1)an html page,where the users will write the code. 2)after the submit button has been clicked,it gives out the required output.
here the compilation of c code is done in the background using gcc. i actually want to know how to execute the whole process,i mean as soon as the code is being written,how do i get it to the compilation loop?
i am quite new to these...please help
Most HTTP servers support CGI scripting (the ability to execute an external program).
So, you HTTP server could execute a bash script that compiles and executes the client C program before collecting and displaying its output.
Note that if the C program erases or formats your hard-disk then you will not be able to use this educational tool for very long.