Did you got the solution? I decided python is a better language. I did have a simi workable copy in php but do not want to force people to have to custom compile php.
Do you have pcntl_fork compiled with PHP on the server? yes, I did it myself on a different box than my cpanel.
Do you just need the directions for writing code for forks or fixing the server side too? I found at least 20 different tutorials on socket servers in php and forking. I mixed the code and came up with something pretty good but figured python would be a better language.
I am not a PHP developer, but I do remember configuring pcntl_fork for a client on his WHM/cPanel Linux server sometime back.