php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17328 The flush() doesn't properly work.
Submitted: 2002-05-21 03:13 UTC Modified: 2002-05-21 03:16 UTC
From: bobby_zhu at hotmail dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.1.2 OS: Windows 98
Private report: No CVE-ID: None
 [2002-05-21 03:13 UTC] bobby_zhu at hotmail dot com
I want to use the Server-push technology to create my website in Win98+Apache.  However when I use the following code:
while(!connection_aborted()){
  echo 'Hello.';
  //..some other code..
  flush();
  sleep(5);
  set_time_limit(10);  //to prevent the code from time limit
}
However, the code doesn't send 'Hello' to the Browser(IE 6.0) every 5 seconds, Actually It DOESN'T SEND ANY CODE TO THE BROWSER.  I am confused, my boss is ANGRY at my slow work.  Please help me.  Thank you.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-21 03:16 UTC] rasmus@php.net
You really should read the documentation.  http://php.net/flush regarding the various caveats related to flush().  And Win98 is also not a well-supported platform.  If you are going to use Windows, at least use Windows2000.
 [2002-05-21 03:34 UTC] bobby_zhu at hotmail dot com
Thank you.
 [2002-05-21 03:34 UTC] bobby_zhu at hotmail dot com
Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 12:01:27 2024 UTC