Pavel Koryagin
Pavel Koryagin

Reputation: 1481

How to execute application from PHP async

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.

Upvotes: 1

Views: 264

Answers (1)

user557846
user557846

Reputation:

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

Upvotes: 1

Related Questions