Hi folks,
I hope this hasn't been asked already, but I have a question about callback-eque behavior I'd really like some help with.
Basically, the user will be submitting a very computationally intensive query that I don't want the user having to wait around for at the website. I'd like for him/her to be able submit their query, and then be told they'll be notified when it's ready to be viewed. The users and jobs are being kept track of in a MySQL
DB. Some C code should be constantly taking these queries out of the queue and processing them, and when they're finished, somehow notify some PHP code that it's done and ready, which in turn updates the DB and sends an email to the user. An example of a system with a similar chain of events is karnak.com (http://www.karnak.com/whatis.shtml)
The C code itself works fine in terms of being able to process a query submitted to it directly, and I'm cool with knowing how updating the DB works and emailing the user in PHP and all that. However, I'm not really sure how this callback arrangement could be done in PHP. Does anyone have experience with this? I really have no clue how to even get started with that part, so even if you know of some cursory resources for that sort of operation, it would be much appreciated!
Thanks so much!
Jonathan