3 ms·
On a somewhat related but more "accessible" possibility, I recently discovered you can do a trick with register_shutdown_function, remove the execution time lim
by ck2 16y ago
On a somewhat related but more "accessible" possibility, I recently discovered you can do a trick with register_shutdown_function, remove the execution time limit and then disconnect the web client entirely, while continuing processing.
So using ajax on the client side, you could say open a dozen connections and purposely disconnect them while continuing processing, technically in parallel (though not in the same process).
Can't fathom a practical use for this at the moment but it's still an interesting ability.
- viraptor 16y ago> Can't fathom a practical use Update anything that the client doesn't need to wait for. Visitor stats, page view stats, notifications about sent messages if you use some distributed queues, any deferred post-processing...
- kingofspain 16y agoI used it for a little client project a while back that had to post form data to 6 different servers, some of which took an age to respond with success/fail. Worked very well.