Python Script Failing to Execute from PHP exec()

后端 未结 4 1921
死守一世寂寞
死守一世寂寞 2020-12-19 10:08

I have a simple PHP function that is supposed to execute a Pyton script when its called. I have tried this sort of function multiple times in my php programs, but somehow th

4条回答
  •  鱼传尺愫
    2020-12-19 10:43

    try to use exact path to the python program.

    $mystring = exec('python testing.py');
    

提交回复
热议问题