PHP exec() as Background Process (Windows Wampserver Environment)

后端 未结 6 1056
-上瘾入骨i
-上瘾入骨i 2020-11-27 13:07

I\'m trying to setup a php trigger file that will set off a background process. (see this question)

I\'m doing this on a Windows Wampserver environment.

So f

6条回答
  •  情歌与酒
    2020-11-27 13:51

    In addition to Rohit's answer above, I edited his solution to work on Windows 10 PHP 7.0.3:

    pclose(popen("start /B ". $cmd, "w"));
    

提交回复
热议问题