I\'m trying to do exactly the same thing as in my previous Python question, but in PHP. See my previous (answered) question
PHP script from previous question does someth
You should look into pcntl_fork if you want a multithreaded application. Also look at ignore_user_abort.