views:

95

answers:

5

Hi,

I have a PHP app that sends emails via the mail command (around 200) and would like to display them on the screen as they are sent, but IE only refreshes the screen at the end of the process. Is there a way to display the list as we go along?

Thanks!

+4  A: 

Hi,

You might want to take a look at this question and it's answers : PHP showing output of foreach to screen, for each item

Pascal MARTIN
+1  A: 

Wouldn't flush() get the job done?

CptSkippy
A: 

You can use a long http session technique, such as Comet.

Daniel
A: 

That would requiring changing some settings in IE I guess. The flush() command only makes php send the output to the browser, it can't control if the browser starts drawing immediately or when everything is loaded.

Linus Unnebäck