[SOLVED] Output-wait-more output problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
KaOs
Forum Newbie
Posts: 1
Joined: Sun Jul 18, 2004 10:34 pm

[SOLVED] Output-wait-more output problem

Post 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
turbo2ltr
Forum Commoner
Posts: 29
Joined: Sun Jul 18, 2004 4:08 pm

Post by turbo2ltr »

[php_man]flush[/php_man]
Post Reply