execute c++ program with php script

前端 未结 5 905
攒了一身酷
攒了一身酷 2020-12-15 09:57

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条回答
  •  清歌不尽
    2020-12-15 10:32

    You can use this sample code:

    
    

    It is working very good for me. Place both controller.exe and xx.php in same folder.

提交回复
热议问题