HTML output in parts not all at once ?
Posted: Thu Apr 24, 2003 9:01 am
Hi All,
Php is processing and buffering all html before output, I think...
Is it possible to output html in parts ? Like:
function1 sends html head & body tags
function2 sends character '*'
function3 does something, 1 sec. delay for example
now
function2 sends charcter '*' again but so that it is
added after previous charcter 1 sec later,
function4 sends closing tags
I have tried this with loops but what happens is that all
code is processed and html is output at once.
I would like page to show current php script run status
in ' realtime ' like ' Reading file 1 ' after it is read script
adds to page ' Processing file 1 ' and so on, hope you
understand what I mean.
Thanks,
Kari
Php is processing and buffering all html before output, I think...
Is it possible to output html in parts ? Like:
function1 sends html head & body tags
function2 sends character '*'
function3 does something, 1 sec. delay for example
now
function2 sends charcter '*' again but so that it is
added after previous charcter 1 sec later,
function4 sends closing tags
I have tried this with loops but what happens is that all
code is processed and html is output at once.
I would like page to show current php script run status
in ' realtime ' like ' Reading file 1 ' after it is read script
adds to page ' Processing file 1 ' and so on, hope you
understand what I mean.
Thanks,
Kari