I want to make a real time Octave compiler in PHP.
The first problem is that I haven't found the solution how to execute in PHP that input would be a command, for example, a=5, but not a file like in the code example below:
<?php
// example with file input
exec("url_to_compiler url_to_the_file 2>&1", $output);
?>
The second problem is that I've spent much time searching in Google and I haven't found how to load only one time exec() function that could accept many inputs as in the picture above.
Can you give me the solutions how to solve these problems? Maybe should I use other PHP funcion for execution?