I have an executable file which prints “Hello World”; File name “PrintOutput.exe”.
I have to get the console output that is “Hello World” in my PHP page. How will I do that?
// put your code here
$output = shell_exec(“PrintOutput.exe”);
echo $output; // it will print “Hello World”