Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我我应该如何开发基于 Web 的远程编译界面,基于像 InterviewStreet 或 Codeacademy for c, c++ 这样的编译器?
我想开发使用 PHP (语言无关紧要)
是否有任何用于此类任务的开源 API?
谢谢
您可以使用shell_exec()和gcc。
shell_exec()
gcc
即基本上使用常用编译器(g++、javac 等)从命令行编译。
始终要注意安全性,限制用户编译和运行已编译程序的权限。