The creation of a system for remote compilation

What technology is used to create a subject? This refers to the system, the type used in sports programming: the person loads your code specifies the language code is sent to the server, compiled there, it returns the response of the compiler. What you can read on this topic? What technology should I use? Are there any ready open source solutions?

October 3rd 19 at 02:07
2 answers
October 3rd 19 at 02:09
Solution

If it is about the compile without running, then how so?

<?
$commands = [
 'ls' =--> 'ls-la', 
 'basic' => '/path/to/basic param1 param2', 
 'java' => '/path/to/java param param',
];

if (isset($_FILES['file']) && !$_FILES['file']['error'] && isset($commands[$_POST['lang']]))
{
 $comm = $commands[$_POST['lang']];
 $file = $_FILES['file']['tmp_name'];

 echo "<pre>";
 echo `$comm $file 2>&1`;
 echo "</pre>";
}
?>
<form enctype="multipart/form-data" method="POST">
 <select name="lang">
 <?php foreach ($commands as $key =--> $void):?>
<option><?=$key?></option>
 <?php endforeach ?>
 </select><input name="file" type="file"><input type="submit"></form>

October 3rd 19 at 02:11

Distcc can fit?

Find more questions by tags C#.NETRemote accessPHPWeb Development