php.net's docs on pcntl_fork aren't exactly clear on how to spawn
multiple child processes...
i tried something like this, but it didn't seem to work:
<?
$pid1 = pcntl_fork();
$pid2 = pcntl_fork();
$pid3 = pcntl_fork();
if ($pid1)
print "test;
if ($pid2)
print "test2";
if ($pid3)
print "test3";
?>
any ideas why it didn't work? any ideas as to what i should be doing,
instead? thanks :)
multiple child processes...
i tried something like this, but it didn't seem to work:
<?
$pid1 = pcntl_fork();
$pid2 = pcntl_fork();
$pid3 = pcntl_fork();
if ($pid1)
print "test;
if ($pid2)
print "test2";
if ($pid3)
print "test3";
?>
any ideas why it didn't work? any ideas as to what i should be doing,
instead? thanks :)
Comment