siddscool19 Posted March 17, 2009 Share Posted March 17, 2009 I want to know how to make php show output as php runs... Rather than showing the full output in one go.. Like in my script there are many loops and each loops get different data.. So its like that the script runs for few seconds.. Now what i want that as the script passes first loop it displays data obtained from that loop rather than the script showing all data once it had passed all loops.. Please let me know if you didn't get what I mean Quote Link to comment https://forums.phpfreaks.com/topic/149821-show-output-as-script-runs/ Share on other sites More sharing options...
premiso Posted March 17, 2009 Share Posted March 17, 2009 ob_flush and or flush This only works on certain browsers. Look at the links for usage. Quote Link to comment https://forums.phpfreaks.com/topic/149821-show-output-as-script-runs/#findComment-786719 Share on other sites More sharing options...
dgoosens Posted March 17, 2009 Share Posted March 17, 2009 I don't know whether this is an option for you... but I find this much easier in the command prompt than in a browser... have a look at Netbeans 6.5 (or any other IDE implementing debugging) and make sure you install Xdebug... this enables you to insert breakpoints and to check the values and objects while the script is running... Quote Link to comment https://forums.phpfreaks.com/topic/149821-show-output-as-script-runs/#findComment-786722 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.