I'll FREELY admit I'm a newbie, and only a hacker-programmer. With that out of the way...
I have a script that needs to iterate through a series of (33) steps, each taking 2-5 seconds.
I've written this as a BASH CGI that outputs CSS/HTML, and it pushes one line of output per iteration to the browser, which is what I want, giving good feedback during the 1-2 total minutes of execution.
I'm trying to write this in PHP4, and it builds all of the output in buffer and dumps it all at once to the browser. Yuck. This is horrible ...
How can I change this behaviour in PHP? Certainly PHP can't be limited this way ... This seems like such a simple thing but I've spent hours googling and checking php tutorials and books!.
Thank in advance.
I have a script that needs to iterate through a series of (33) steps, each taking 2-5 seconds.
I've written this as a BASH CGI that outputs CSS/HTML, and it pushes one line of output per iteration to the browser, which is what I want, giving good feedback during the 1-2 total minutes of execution.
I'm trying to write this in PHP4, and it builds all of the output in buffer and dumps it all at once to the browser. Yuck. This is horrible ...
How can I change this behaviour in PHP? Certainly PHP can't be limited this way ... This seems like such a simple thing but I've spent hours googling and checking php tutorials and books!.
Thank in advance.