Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
how to compile a c program written in online web browser and take the program to server side and take back the compiled answer to web browser to dispaly answer
Posted
Comments
joshrduncan2012 1-Feb-13 9:14am    
What steps have you taken to try to solve this problem so far?
Sergey Alexandrovich Kryukov 1-Feb-13 18:55pm    
Why?
—SA

1 solution

Do the following:
1) save the submitted text into a local file
2) run the C compiler on that file
3) zip the result
4) post that zip file to a public folder
5) provide the link to the published zip file

Details to be elaborated by you - access rights and security issues too... ;-)
Cheers
Andi
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Feb-13 18:55pm    
Hard to argue against the steel logic :-), a 5. The only problem is: why?
—SA
Andreas Gieriet 1-Feb-13 19:36pm    
Thanks for your 5!
Not everything needs a reason... ;-)
Some people collect stamps - a life long - why? I don't know... ;-)
Cheers
Andi
Sergey Alexandrovich Kryukov 1-Feb-13 19:38pm    
Yee... but I can imagine... having a vivid imagination and empathic abilities... :-)
—SA
Andreas Gieriet 1-Feb-13 20:07pm    
I have first hand experience, minus the "life long" part ;-)
The "why", I still don't know. The "why not", I do for my self.
But this is not against anyone who collects anything (like stamps) - it's just to show: not everything needs a reason, unless one accepts "just for fun" (or similar) as a reason (well, in fact, I do :-))
E.g. posting answers here is "just for fun" too - a bit addictive - but still fun.
Cheers
Andi

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900