Execute an external program in background
void
background
(string $cmd, [string $stderr = ''])
-
string
$cmd: The command that will be executed
-
string
$stderr: STDERR path
Execute an external program
string
exec
(string $binary, string $arguments, [string $workdir = NULL], [array $descriptorspec = NULL], [string $extension = ''])
-
string
$binary: Command path
-
string
$arguments: Command arguments
-
string
$workdir: The initial working directory for the command
-
array
$descriptorspec: An indexed array where the key represents the descriptor number and the value represents how PHP will pass that descriptor to the child process. 0 is stdin, 1 is stdout, while 2 is stderr.
-
string
$extension: Command extension