flush() does not work

don't know whether this has anything to do with the cgi mode, but flush()
didn't work.

#!php-cgi
<html>
<body>
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111

<?php flush();sleep(10); ?>
222222
<?php flush();sleep(10); ?>
333333
<?php flush();sleep(10); ?>
444444
</body>
</html>
Peter Pei [ So, 13 Januar 2008 21:17 ] [ ID #1906746 ]

Re: flush() does not work

those 3 sleep(10) cause error, since the script exceeded the 30 s default.
btu that's unrelated, reduce to 5 s the same thing
Peter Pei [ So, 13 Januar 2008 21:27 ] [ ID #1906748 ]

Re: flush() does not work

never mind, buffer conf is 2 big
Peter Pei [ So, 13 Januar 2008 21:44 ] [ ID #1906750 ]
PHP » comp.lang.php » flush() does not work

Vorheriges Thema: Can a form change session variables?
Nächstes Thema: $result = $stmnt->fetchAll(); returning duplicate keys for a single