This is an alternative of fork in PHP with exec() function:
exec("/bin/ping 192.168.0.1 -c 12 2>/dev/null >&- <&- >/dev/null &");
Sources:
http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/
http://immike.net/blog/2007/04/08/fork-php-and-speed-up-your-scripts/

0 Responses to “Fork alternative in PHP”