skip to main
|
skip to sidebar
ÇÖÐÊSHËþHÈRD's Garbage Collector
Friday, October 23, 2009
Forking in PHP on Mac OSX using pcntl_fork
1)sudo port selfupdate
2)sudo port update outdated
3)sudo port install php5-pcntl
4)Try the following example
$pid = pcntl_fork();
if($pid) {
// parent process runs what is here
print "parent\n";
}
else {
// child process runs what is here
print "child\n";
}
?>
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Blog Archive
►
2010
(4)
►
November
(1)
►
September
(1)
►
August
(1)
►
July
(1)
▼
2009
(4)
▼
October
(1)
Forking in PHP on Mac OSX using pcntl_fork
►
June
(1)
►
May
(2)
►
2008
(1)
►
May
(1)
►
2007
(46)
►
November
(11)
►
October
(14)
►
September
(5)
►
August
(3)
►
July
(2)
►
June
(3)
►
May
(8)
►
2006
(1)
►
August
(1)
Links
De Ghuma Ke
Ram's Blog
Codeshepherd's Home Page
Sudoku Solver
About Me
codeshepherd
View my complete profile