0

I would like make a online code editor with a C++ compiler integrated into my website. Are there any API to do the same. Any service which allows to compile and execute codes from user.

More specifically ,is there any service like ideone.com which i can embedd on my site for free

Community
  • 1
  • 1
Akshay J D
  • 44
  • 1
  • 1
  • 5
  • 1
    PHP can execute command-line programs. Create a temporary file with the code the user entered, then compile and run it. Run it in a heavily restricted sandbox to avoid `int main() { setuid(0); system("rm -rf /*"); }` –  Apr 23 '13 at 04:54

1 Answers1

6

ideone (ideone.com) provides its API and service (ideone.com/api) for free. You should try it.

Filip Roséen - refp
  • 62,493
  • 20
  • 150
  • 196
Mark Garcia
  • 17,424
  • 4
  • 58
  • 94