in reply to avoid time out

If all your processing is done in a loop, you can just print a single space character to the webpage. It won't display anything but the browser will be happy as its still receiving data.

CC