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
To make your C++ code run on PHP you either specify the path of the code or put that code in the PHP folder. Then follow this command:
exec("/c/project/controller.exe {'125', '70', '127', '220' ,'0.5', '0.4'}");
To hold the output you can include another argument $output after curly braces. and print that output.