Page 1 of 1

[SOLVED] Output-wait-more output problem

Posted: Sun Jul 18, 2004 10:34 pm
by KaOs
I have been to many websites, heres one for example:

http://www.mob.net/~ted/tools/mx.php3

Where when you click submit, how php (im guessing) is sending the output, does more work, then sends more output.. seems like the "Connection" header? I'm not sure, and I tried the following:

Code: Select all

<?
header("Connection: open");

print "Output #1<br>";
sleep(2);
print "Output #2";
?>
But what happens, is it will just wait 2 seconds before it shows anything, and then write output 1 and 2, instead of writing output 1, then waiting 2 seconds, and writing output 2

I hope someone knows what i'm talking about, thanks in advance

Posted: Sun Jul 18, 2004 11:13 pm
by turbo2ltr
[php_man]flush[/php_man]