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 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... 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 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. Link to comment https://forums.phpfreaks.com/topic/128443-solved-constant-output/#findComment-665660 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.