문제

Can anyone tell me how I should approach the development of a web-based interface for remote compiling, based a compiler like InterviewStreet or Codeacademy for c, c++ ?

I want to develop the using PHP (Language doesn't matter anyway)

Is there any Opensource API for this kind of task?

Thanks

도움이 되었습니까?

해결책

You could use shell_exec() and gcc.

I.e. basically compile from command-line with the usual compilers (g++, javac among others).

Always be careful of the security though, restrict the rights of the user compiling and running the compiled programs.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top