How do I start a new instance of PHP in Windows without it opening a new CMD window?

走远了吗. 提交于 2019-12-24 13:58:45

问题


I want multiple PHP processes to run in the background without disturbing the user. This is the code I have:

exec("psexec -d php peak.php map/eline/updatedotrange first=$first last=$last filename=$filename > NUL 2> NUL");

But for every exec statement, a new CMD pops up. This kinda ruins it for me when I'm looping 100 times and running that line.

Any way I can get the process to run in the background, without the user noticing?


回答1:


I solved it using bgrun.exe

http://www.jukkis.net/bgrun/

If anyone knows a 100% native Windows way to do this I'd die to know



来源:https://stackoverflow.com/questions/6048299/how-do-i-start-a-new-instance-of-php-in-windows-without-it-opening-a-new-cmd-win

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!