Jump to content

Script results only shown after whole script execution


diamondtron

Recommended Posts

Hi,

 

I have a PHP script which runs for around 60 mins, It contains code somewhat similar below.

 

while(loop through sql query results)

{

if(condition_check)

echo "OK"

else

echo "Not OK"

}

 

The problem is i am getting the final output displayed on the page only after when the whole scripts finishs (~ 60 mins).

What is want is as soon as condition is checked the result should be displayed and then it should move on to next iteration.

I tried adding flush() but it doesnot work, Can anyone help me out.

 

Thanks a lot in advance.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.