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
PHP scripts are run by php.exe so unless you have controller.exe in the same folder with php or your folder that contains controller.exe is in your path variable it wont work.
Try giving it absolute path.
The arguments should be passed in the same string as the executable, so something like this:
exec("/c/project/controller.exe {'125', '70', '127', '220' ,'0.5', '0.4'}");