I want to run a c++ code in php script. It takes 6 runtime arguments. I am trying with:
exec("./controller.exe",{"125", "70", "127", "220" ,"0.5", "0.4"});
But it is not working.
You can use the call:
exec("./controller.exe 125 70 127 220 0.5 0.4", $out);
$out will hold the output if you are interested
1.4m articles
1.4m replys
5 comments
57.0k users