nicktherockstar Posted February 3, 2009 Share Posted February 3, 2009 Guys, You know how sometimes if your built page fills your buffer it delivers that section and then carrys on building the rest of the page before delivering it? is there a way to manually force delivery of the built section? imagen I am echoing thousands of lines down a page, but want to deliver each line as its made, not after all are made? make sense? I know it sounds crazy and not useful on most pages but its a very bespoke solution I am working on. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/143583-solved-early-delivery-of-page-to-browser/ Share on other sites More sharing options...
trq Posted February 3, 2009 Share Posted February 3, 2009 You might take a look at ob_flush. Quote Link to comment https://forums.phpfreaks.com/topic/143583-solved-early-delivery-of-page-to-browser/#findComment-753383 Share on other sites More sharing options...
nicktherockstar Posted February 3, 2009 Author Share Posted February 3, 2009 Brilliant, that looks like it might do exactly what I need! Big thanks Quote Link to comment https://forums.phpfreaks.com/topic/143583-solved-early-delivery-of-page-to-browser/#findComment-753390 Share on other sites More sharing options...
nicktherockstar Posted February 3, 2009 Author Share Posted February 3, 2009 using... ob_implicit_flush(true); ob_end_flush(); at the very start of the script works great. no other code needed. Quote Link to comment https://forums.phpfreaks.com/topic/143583-solved-early-delivery-of-page-to-browser/#findComment-753395 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.