Hi,
We are working on a script where we need to interact with 3rd party server to calculate results for the visitors on the website. The script gets data from a 3rd party server using web services and then uses that data to proceed with further calculations. Now some times the 3rd party server is very slow, and it takes more than a couple of minutes to get the data. We don’t want our visitors to wait for so long. If we don’t get response from 3rd part server in 10 sec. we want to ignore the 3rd party server and upload the rest of the webpage.
Is there any PHP function which will let us calculate the response time and if we don’t get any response from the 3rd party server we just stop seeking response and move ahead with rest of the calculation and uploading the webpage?
I will really appreciate if you experts can give me any advice.
Thanks