Wondered ? Yes it is possible using proc_open command for running terminal operations. But I am not sure about Windows Machines.
The Code goes here:
$descriptorspec = array(
0 => array("pipe", "r"), // stdin is a pipe that the child will read from
1 => array("pipe", "w"), // stdout is a pipe that the child will write to
2 => array("file", "filename.txt", "w") // stderr is a file to write to
);
$command = "g++ cplusplusfile.cpp";
proc_open($command,$descriptospec,$output);
0 Response to "Compile C++ using PHP ???"
Post a Comment