How to open multiple socket connections and do callbacks in PHP
- by Click Upvote
I'm writing some code which processes a queue of items. The way it works is this:
Get the next item flagged as needing
to be processed from the mysql
database row.
Request some info from a google API
using Curl, wait until the info is
returned.
Do the remainder of the processing
based on the info returned.
Flag the item as processed in the
db,…