[eluser]Falney[/eluser]
Hi. I'm having a problem where I need to flush data in a view file to create a div based progress bar.
I need the script to do a lot of HTTPRequest's and I need some way to show people that the site isn't actually broken.
Unfortunately (And Im not 100% sure why though but I think I may know) flush(); doesn't seem to want to work. Here's a (very)basic test script I wrote up while trying to get it working;
Code:
<?PHP
ob_start();
echo 'Bounty<br>';
@ob_flush();
sleep(5);
echo 'Snickers<br>';
@ob_flush();
sleep(5);
echo 'Mars';
flush();
//END OF TEST VIEW
It's running the whole script and outputting it at once when it's finished processing.
I've tried using ob_get_contents() also. I'm just at a loss and feeling embarressed from it.
Please help.
Fal