hi when implementing a connection that remains open for a long time (comet), how can I implement signaling between php profiles (outstanding requests)?
Example Timeline:
I wandered if it was a method using less (noting?) That cpu prosessing
If your platform is Linux / Unix, you can use queues .
sleep(), .
sleep()
, pcntl_signal(), pcntl_fork(). forking, .
cpu, usleep() , .
"" .
script 1 - ""script 1 , , , ,else sleep/repeat
script 2 checks for incomplete jobs in the database;if so, then act and write returncodeelse sleep / repeat