How to Build a PHP Queue System
问题 I had to build a PHP Queue System, and found this brilliant article http://squirrelshaterobots.com/programming/php/building-a-queue-server-in-php-part-1-understanding-the-project and I used it to create a PHP queue system, its very easy to set-up and use. Below is the code for queue.php, run from shell (puTTy or somesuch). <?PHP //. set this constant to false if we ever need to debug //. the application in a terminal. define('QUEUESERVER_FORK', true); //////// fork into a background process /