Jump to content

Recommended Posts

yep I tried that too. It didn't work...I am using firefox, would that be why?

 

Well a loop of 10 would not really show this. It works in Firefox cause that is what I use and I know it works...try this.

 

<?php
set_time_limit(100);
for($i=0;$i<=10;$i++){
    echo 'this is something '.$i;
    ob_flush();
    flush();
    sleep(5);
}
?>

 

It should take display that every 5 seconds.

 

Along with the browser difference, I know that some Anti-virus software will hold your page buffer until the end then display it, so that is also something to think about/check.

 

 

Php, different web servers and different web server settings for buffering and compression, and different browsers and different browser settings for compression affect if and when you can incrementally send output from a server to a browser.

 

You should not expect a web based application to be able to do this from the server side. If you get it working on one setup, it probably won't work on the next.

 

To get a value to update in the browser, you should have the browser get that value from the server using AJAX.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.