Display PHP Progress Live [Server Setting?]
well I have this script and basically it's doing a loop of stuff, now when I was running the same s开发者_如何转开发cript on my friends server it would display the progress live, like display text as it was doing the loop.
But now for some reason on my server, it's waiting until the scripts done executing completely before displaying any data what so ever.
You guys got any ideas?
Thanks!
Add
ob_flush();
flush();
After each system out (echo / print) etc ..
Getting this to work is dependent on web server settings, php settings, and browser type and browser settings. This is what I read from lot of posts. I had this problem too and was solved by echoing whitespaces
echo str_repeat(' ',1024*64);
echo "Your echo goes here"
精彩评论