9 lines
186 B
PHP
9 lines
186 B
PHP
<?php
|
|
$pid = pcntl_fork();
|
|
if ($pid == 0)
|
|
echo "This is the new process\n";
|
|
else if ($pid > 0)
|
|
echo "This is the original process\n";
|
|
else
|
|
echo "ERROR: Something went wrong\n";
|
|
?>
|