output buffering question
Posted: Tue Feb 24, 2004 8:49 pm
I'm assuming ob_ functions are what I'm going to need for this, but I'm stuck on exactly how to do it. I've been experimenting with ob_start(); ob_flush(); and stuff like that, but I just can't get my desired result :\
I want to have a type of loading thing, almost like
echo "processing";
insert into db blah blah blah
echo "calculating";
for($i=0;$i<$num;$i++){
$val = $val2*$val2 / 2 + $val;
}
echo "Done.";
echo "Value: " . $val;
it wont be really like that, but as a general thing, how would i go about doing that?
I want to have a type of loading thing, almost like
echo "processing";
insert into db blah blah blah
echo "calculating";
for($i=0;$i<$num;$i++){
$val = $val2*$val2 / 2 + $val;
}
echo "Done.";
echo "Value: " . $val;
it wont be really like that, but as a general thing, how would i go about doing that?