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 7022697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:36:56+00:00 2026-05-27T23:36:56+00:00

Well i have the following code: <?php while(1==1){ echopiece<br>; flush(); }; ?> The problem

  • 0

Well i have the following code:

<?php
while(1==1){
echo"piece<br>";
flush();
};
?>

The problem with this code is that the server doesn’t send 1 line (piece<br>) at the time..
Sends 10 lines per flush or whatever..

I tried this echo"piece<br>".str_repeat("\n",4096)

but it doesn’t work.I don’t know what to do..
Any advice?

Edit: The code into my previous question but i can’t write html 🙁

Edit2: I have upload my script here. Works fine only in Internet Explorer.

  • 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-27T23:36:57+00:00Added an answer on May 27, 2026 at 11:36 pm

    You may be having a problem with browser-side caching. I’ve had this problem with Safari; using Firefox allowed me to see the data live.

    If you see this with different browsers, then you may be hitting some server-side caching:
    http://php.net/manual/en/function.flush.php

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

Sidebar

Related Questions

I have the following problem that the standard library doesn't solve well, and I'm
I have the following code that compiles and works well: template<typename T> T GetGlobal(const
I am facing a strange problem. My PHP page has following code. echo <div
I have code in php such as the following: while($r = mysql_fetch_array($q)) { //
Well I am using the following code to redirect users who don't have my
I have the following script that works well in Firefox and Chrome (not sure
Well I have this MySQL stored procedure that I wrote and if I run
i've got this snazzy python code: import subprocess value = subprocess.Popen([php,./php/php_runner.php],stdout=subprocess.PIPE); the problem is,
I have the following code. PHP side: <?php print_r($_POST); print_r($_GET); die(); ?> In JavaScript:
hey well I have the following code loading an swf <object style=visibility: visible; id=myContent

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.