matchu Posted October 14, 2008 Share Posted October 14, 2008 Hi, How can I make it so that PHP outputs while still loading the page? Sounds simple, and probably is, but I still haven't stumbled upon the answer. Thanks, --Matchu Quote Link to comment https://forums.phpfreaks.com/topic/128443-solved-constant-output/ Share on other sites More sharing options...
CroNiX Posted October 14, 2008 Share Posted October 14, 2008 You can't directly. PHP is parsed before the document is even sent to the browser. You can with a mix of javascript/ajax/php... Quote Link to comment https://forums.phpfreaks.com/topic/128443-solved-constant-output/#findComment-665585 Share on other sites More sharing options...
kenrbnsn Posted October 14, 2008 Share Posted October 14, 2008 You can use the flush() function, but it doesn't work with all browsers. Ken Quote Link to comment https://forums.phpfreaks.com/topic/128443-solved-constant-output/#findComment-665588 Share on other sites More sharing options...
matchu Posted October 14, 2008 Author Share Posted October 14, 2008 Wonderful! Thanks for your help. Quote Link to comment https://forums.phpfreaks.com/topic/128443-solved-constant-output/#findComment-665660 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.