E
E
Empty User2017-05-16 22:09:20
Java
Empty User, 2017-05-16 22:09:20

How to compile C++, JAVA?

Good afternoon! (course project) We wrote a web part of the service that works like acmp.ru
That is, there are Olympic tasks, the user adds his solution in the form of a .cpp or .java file, and the server must compile the code and check the answers in the database. How can I link the mingw, jdk compiler with a web part written in PHP? It only comes to mind to make a .sh script from the PHP side.
Are there any ready-made solutions for this? Or in which direction to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ter, 2017-05-17
@dimash07

There are several options such as calling exec or using the Common Gateway Interface (CGI). Here is a good example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question