I'm doing php cURL requests to an API (an ad exchange).
The request creates a report that takes 2-60 seconds to generate, depending on server load. (95% of the time, it only takes 2 seconds).
When I do this request, I get an array of data from the API, including the report status, which I set as $foundreportstatus. If I check $foundreportstatus immediately, it will say "In Progress".
Is there a way to recheck/update $foundreportstatus every 2 seconds, to see if the status has changed to 'Complete'?
It was suggested previously that I employ outside plugins (eg. Gearman) to handle an asynchronous request. Is there a way to avoid installing any plugins?