Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6561591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:36:26+00:00 2026-05-25T13:36:26+00:00

This snippet: ob_start(); for($i=0;$i<70;$i++) { echo ‘printing…<br />’; ob_flush(); flush(); usleep(300000); } From this

  • 0

This snippet:

ob_start();

for($i=0;$i<70;$i++)
{
    echo 'printing...<br />';
    ob_flush();
    flush();

    usleep(300000);
}

From this page: http://www.php.net/manual/en/function.flush.php#85382

Isn’t working on WAMP2 (PHP 5.3.0, Apache 2.2.11) installed on Windows 7, browsing from http://localhost with IE 8, FF 6.0.2 and Chrome 13.

None of them worked. All the ‘printing…’ lines are just output in one instant batch when the page finished processing.

output_buffering in php.ini is set to ‘On’.

Any ideas why it isn’t working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:36:27+00:00Added an answer on May 25, 2026 at 1:36 pm

    Several reasons why flush fails are discussed on the ob_flush() documentation page (eg interference with certain antivirus sw’s, interference with zlib compression, …). Worth reading.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This snippet from official website works as expected: $treeObject = Doctrine::getTable('Category')->getTree(); $rootColumnName = $treeObject->getAttribute('rootColumnName');
Edit: I put this snippet of code in jsbin: http://jsbin.com/eneru I am trying to
This snippet is from an earlier answer here on SO. It is about a
I use this snippet to prevent the user from accidentally navigating away from the
I have this snippet of VB Script code on one of our asp page.
This snippet is added fine: http://pastebin.com/m5f7f2dce And this is the one I'm trying to
This snippet (taken from this question ) compiles fine with g++ (as seen), so
Consider this snippet: function f() { return 'hi'; } echo f(); Vs this snippet:
Given this snippet from Blah.dll's AssemblyInfo.cs: [assembly: AssemblyVersion(3.3.3.3)] [assembly: AssemblyFileVersion(2.2.2.2)] And then in a
This snippet just makes IE7/IE8 crashes the page throwing error. I don't know why

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.