Hi,
I'm just starting out with the object buffering method in PHP...its not working as I'd hoped, and I hope someone here can point me in the right direction!?
here's the scenario... I have thousands of records which need to be updated... each record has a "parent" record... eg:
ProcessID = 2.01 is ONE record which has say 200 other records all associated with it. These all need to be updated..... but then there are loads of processID's... eg:
1.01, 1.02 etc ALL have hundreds of records under them. Here's the OB code I have so far:
$process_array = $process->get_all_processes_by_org("demo");
for ($x=0;$x<sizeof($process_array)-1;$x++) {
ob_start();
$tmp = explode(",",$process_array[$x]);
echo " - " . $tmp[0] . ""; #shows the processID eg: 2.01
$class->update_records(); #go and update ALL records based on the processID
echo " DONE!<BR>";
#it should out put the above, BEFORE moving on to the next processID
ob_end_clean();
}
I thought the way this works is that it will go and do the function, then print out "done" once its done it all, then the output will put that to screen - then it will go and do the next item in the loop, do that, then output DONE, etc....
am I missing the point?!
Cheers for ANY info!!!
Matt