PHP页面超时 - 我可以通过异步显示解决吗?

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)?

You could do this with AJAX. Send an AJAX-request that sends out 50 (or any other number that fits into the timelimit) and echos out the result. When the request successfully finished send out the next AJAX-Request with a parameter called offset, that will be used to skip the first X datasets.