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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bobby_zhu at hotmail dot com
New email:
PHP Version: OS:

 

 [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: Fri Dec 27 02:01:29 2024 UTC