Click here to Skip to main content
13,090,417 members (49,944 online)
Rate this:
Please Sign up or sign in to 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 1-Feb-13 2:39am
joshrduncan2012 1-Feb-13 9:14am
What steps have you taken to try to solve this problem so far?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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... ;-)
Hard to argue against the steel logic :-), a 5. The only problem is: why?
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... ;-)
Yee... but I can imagine... having a vivid imagination and empathic abilities... :-)
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 1 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100