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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

Add a Patch

Pull Requests

Add a Pull Request

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 Mar 28 08:01:28 2024 UTC