oconkero Posted July 5, 2007 Share Posted July 5, 2007 OK here it is people, ive got a problem with the server. I dont know precisely as to which component its with... server configuration most likely. The problem is that i can output something on a page flush it with php to output that txt and then sleep and the output more text. and this script should do that, right? <?php echo("Sleeping for 3 seconds."); flush(); sleep(3); echo("Done."); ?> But it does not do what it is ment to do, it instead of doing piece by piece loads all at once, but it takes well in this case 3 seconds to load... like if i goto the page it will be blank for 3 seconds then all of the text just pops up at once. Well i hope this is enough info for you all, and thanks in advance people, i know this is a wierd one. -- "Human knowledge belongs to the world." Link to comment https://forums.phpfreaks.com/topic/58483-server-flush-problem/ Share on other sites More sharing options...
DMeerholz Posted July 5, 2007 Share Posted July 5, 2007 Hey, I am pretty new at this but i had the same thing the other day, I just added ob_flush(); before the normal flush and it works fine... <?php echo("Sleeping for 3 seconds."); ob_flush(); flush(); sleep(3); echo("Done."); ?> Hold on, I will find the thing I read, cause it mentioned some config stuff you could do to change it too... something about mod_gzip... Here you go http://www.phpbuilder.com/board/showthread.php?t=10317119 Hope this helps. Link to comment https://forums.phpfreaks.com/topic/58483-server-flush-problem/#findComment-290276 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.