I have a PHP page that sends notification emails. When it sends out more than ~100 it times out. I'd like the page to work like Kayak so that the user can see progress occurring (so they will wait longer).
How can my page quickly load (preventing timeout) before sending the emails, then update as and when the process runs (e.g. as each email is sent a line gets written to the screen)?