Fork: Difference between revisions

235 bytes added ,  14 years ago
added php
m (→‎{{header|Tcl}}: Convert to using internal links to pages on libraries)
(added php)
Line 130:
 
Obviously you could do a Fork in a lot less lines, but this code covers all the bases
 
=={{header|PHP}}==
{{trans|C}}
<lang 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";
?></lang>
 
=={{header|Pop11}}==
Anonymous user