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
HTML output in parts not all at once ?
Moderator: General Moderators
Inter,
Thank you very much! flush() was exactly
what I was looking for.
Php function list says win32 servers
and some other buffer html anyway.
Got it working on my Win98 home PC
( with Apache ) and Linux/Apache.
There was also good info about browser
buffers on php.net function list.
Thanks again,
Kari
Thank you very much! flush() was exactly
what I was looking for.
Php function list says win32 servers
and some other buffer html anyway.
Got it working on my Win98 home PC
( with Apache ) and Linux/Apache.
There was also good info about browser
buffers on php.net function list.
Thanks again,
Kari
php.net/any_function
will get you info about the particular function...eg...
http://www.php.net/flush
will get you info about the particular function...eg...
http://www.php.net/flush