Category : environment

I try to run a Python script as a background process from PHP on Windows using exec() on this way: <?PHP $python = ‘C:UsersUseranaconda3python.exe’; $py_script = ‘C:wampwwwlabexsimple_test.py’; $py_stdout = ‘> temp’.session_id()."_std.txt"; $py_stderror = ‘2> temp’.session_id()."_stde.txt"; exec("$py_bg $python $py_script $py_stdout $py_stderror &"); The script called and worked correctly, but PHP still waiting for the script. I ..

Read more