ankhmor Posted February 11, 2011 Share Posted February 11, 2011 I have a script that has a foreach loop. The script ususally runs for VERY VERY long time ( i have set_time_limit(0) Now what I need it to do is to echo some string at the end of each loop. However it doesn't. The script displays everything after its finished. That's not acceptable for me. I'm running xampp for windows. Link to comment https://forums.phpfreaks.com/topic/227382-script-updates/ Share on other sites More sharing options...
Jessica Posted February 11, 2011 Share Posted February 11, 2011 You probably have the echo in the wrong spot. Link to comment https://forums.phpfreaks.com/topic/227382-script-updates/#findComment-1172817 Share on other sites More sharing options...
ankhmor Posted February 11, 2011 Author Share Posted February 11, 2011 nah its definitely in the foreach loop. and if it wasn't it would only echo one line instead of hundreds. Link to comment https://forums.phpfreaks.com/topic/227382-script-updates/#findComment-1172828 Share on other sites More sharing options...
BlueSkyIS Posted February 11, 2011 Share Posted February 11, 2011 flush may or may not work for you. http://php.net/manual/en/function.flush.php Link to comment https://forums.phpfreaks.com/topic/227382-script-updates/#findComment-1172830 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.