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. Quote 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. Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/227382-script-updates/#findComment-1172830 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.