Call to undefined function pcntl_fork()
$pid = pcntl_fork(); if ($pid == -1) { die("ERROR"); } else if ($pid == 0) { head($argv[2]); exit(0); } else { $pids[] = $pid; } }
else if ($pid == 0) { head($argv[2]); if ($pid == 0) head($argv[1]); exit(0);
Quote:Currently, this module will not function on non-Unix platforms (Windows).
$pid = pcntl_fork(); if ($pid == -1) { die("ERROR"); } else if ($pid == 0) { head($argv[2]); exit(0); } else { $pids[] = $pid; } } foreach ($pids as $pid) { pcntl_waitpid($pid, $status); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)