I have a some C++ code I would like to have run on a server and return the output. I know that
exec("./myprogram.exe", $out);
should run the program and $out
will hold the output. Currently I can't get output from my program... it outputs it using cout
and I compiled it on Windows, the server I want to run it on is Linux based. Any pointers?