如何从PHP异步执行应用程序

问题描述:

When I'm using exec or shell_exec they wait until the spawned app will exit (in Windows). But I need to run and forget (and exit). How?

I tried start DOS/Windows command but did not find the solution yet.

当我使用 exec code>或 shell_exec code>时,他们会等待 直到生成的应用程序退出(在Windows中)。 但我需要跑去忘记(并退出)。 怎么样? p>

我尝试了 start code> DOS / Windows命令,但还没找到解决方案。 p> div>

$shell = new COM("WScript.Shell");
$shell->run($command, 0, false);