I am wondering if I can do some threaded work on PHP side, just like in Java…
I have tried sleep() function, but it seems it stuck all processes on the server.
I wanted to process several post actions, before one is complete.
But when I tried with Ajax, I noticed that although I sent asynchronous requests, they got proceeded one by one, in sequence.
Is there any way to create a thread on PHP side?
We sometimes used a hack. We created one script and inside it we sent several http requests without waiting for a response.
That way we were able to mimic threads.