title: Calling a webservice with exectution time > 10 seconds in a loop
body: <p>I have a web service in PHP that fetches data from another server. I store all the data from the DB and this takes approx 15 to 20 seconds on every execution. The problem is that when I have to run the service within a date range i.e. for example <code>01-DEC-2016</code> to <code>05-DEC-2016</code>, the script can run for only one day at a time. I am reluctant to call it in a loop because I have heard that the loop itself executes very fast, while the process itself takes 20 seconds or more. Can  anybody help me?</p>