Bojan Tesanovic wrote: > Try this it help 90% of time, > > function my_flush(){ > @flush(); > @ob_flush(); > @flush(); > @ob_flush(); > @flush(); > @ob_flush(); > } > > this can force buffer to really flush output when you call it few > times, also don't forget @ so it doesn't show empty buffer warning ..... > > > > > On Feb 26, 2008, at 9:06 PM, Ritesh Nadhani wrote: > >> Hello >> >> I have a sample code like: http://pastebin.ca/919386 >> >> I have around 4000 rows returned so it should show me partial output >> at client after each 100 rows but it never does. I am only getting the >> output after full completion. >> >> Though if you remove the step code and output after every row then i >> can see the update. >> >> My phpinfo(): http://craig.cs.uiowa.edu/smt/phpinfo.php >> >> Any idea what might be the problem? I want to show a status message >> after every 100 rows processed...... >> >> -- >> Ritesh >> http://www.riteshn.com >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > Bojan Tesanovic > http://www.classicio.com/ > http://www.carster.us/ > > > > There are many oddities with different web servers and browsers. Some don't do what you expect: http://us2.php.net/manual/en/function.flush.php Depending on the script, when I want to see if buffering is active or at what level and want to recursively flush or end buffers, I use: while(ob_get_level() != 0) //flush or end or clean, etc... or while(($contents = ob_get_contents) !== false) //flush or end or clean, etc... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php