Skip to content
Advertisement

Tag: parallel-processing

PHP: how to start a detached process?

Currently my solution is: and in file.php is there any way I can do this just with exec? Answer No, detaching can’t be done with exec() directly (nor shell_exec() or system(), at least not without changing the command, and using third-party tool which does detach). If you have the pcntl extension installed, it would be: Call it like this:

Advertisement