i am developing an ajax progress indicator to show the progress of records processed at the server to the user.
for ($i=0; $i<5000; $i++)
{
process_record();
echo $i ; ;
}
but when i check the state of the httpobject == 4 (completed), the output seems like 123456789101112...
ie, the response is obtained only after processing all records.
please help..