php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3458 flush() function does not work
Submitted: 2000-02-11 19:10 UTC Modified: 2002-09-30 20:16 UTC
From: sd50066 at lanet dot lv Assigned:
Status: Not a bug Package: Misbehaving function
PHP Version: 3.0.14 OS: NT4
Private report: No CVE-ID: None
 [2000-02-11 19:10 UTC] sd50066 at lanet dot lv
<html>
<head>
</head>
<?php
for ($i=1;$i<50;$i++) {
for($ii=1;$ii<$i;$ii++){printf("X");}
flush();
sleep(1);
printf("<BR>");}
?>
</html>

The script does not show row of "X" setep-by-step, but processes it and shows outcome at once.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-30 20:16 UTC] hholzgra@php.net
php flush() only flushes it internal output buffers
it has no influence on web server buffering or proxies

especially on windows the output is always completely
buffered until script termination AFAIR
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Mar 22 14:01:26 2019 UTC