Voldemort Posted October 31, 2007 Share Posted October 31, 2007 I've got a script that takes around twenty seconds to execute, and while that's going on, all you can see is the top of the page. Is there a way (perhaps with a buffer?) to load the surrounding html and then, when all of the variables are set and ready to go, show it? Oh, and I've now been logged in for 24 hours total yay! Enough sidetracking... does anyone know how to accomplish this? Quote Link to comment https://forums.phpfreaks.com/topic/75431-load-surrounding-html-while-php-is-still-executing/ Share on other sites More sharing options...
teng84 Posted October 31, 2007 Share Posted October 31, 2007 dont know if php can but i guess it is flash Quote Link to comment https://forums.phpfreaks.com/topic/75431-load-surrounding-html-while-php-is-still-executing/#findComment-381592 Share on other sites More sharing options...
hitman6003 Posted October 31, 2007 Share Posted October 31, 2007 I think if you have no output buffering, and you echo the html to the browser first, then execute whatever code takes 20 seconds, the browser will receive the initial html, then wait for more while the remaining code executes. I haven't tested it, but it works in my head. Quote Link to comment https://forums.phpfreaks.com/topic/75431-load-surrounding-html-while-php-is-still-executing/#findComment-381602 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.