【问题标题】:How do I start a new instance of PHP in Windows without it opening a new CMD window?如何在 Windows 中启动新的 PHP 实例而不打开新的 CMD 窗口?
【发布时间】:2011-08-28 05:52:13
【问题描述】:

我希望多个 PHP 进程在后台运行而不会打扰用户。这是我的代码:

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

但是对于每个 exec 语句,都会弹出一个新的 CMD。当我循环 100 次并运行那条线时,这有点毁了我。

有什么方法可以让进程在后台运行,而不会引起用户注意?

【问题讨论】:

标签: php windows background exec xampp


【解决方案1】:

我使用bgrun.exe解决了它

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

如果有人知道 100% 原生 Windows 方法来做到这一点,我会死的知道

【讨论】:

    猜你喜欢
    • 2015-01-10
    • 1970-01-01
    • 2012-08-14
    • 2018-10-29
    • 1970-01-01
    • 2016-07-02
    • 1970-01-01
    • 1970-01-01
    • 2014-03-24
    相关资源
    最近更新 更多