ApocalypeX Posted March 6, 2010 Share Posted March 6, 2010 So my script grabs info off of another site.It takes bit by bit. Lets say I wanted the script to echo whenever it has finished grabbing that thing and then grab the next as the scripts running. Normally when I try it, the page just loads then it echos everything in one go. Link to comment Share on other sites More sharing options...
boen_robot Posted March 6, 2010 Share Posted March 6, 2010 Call ob_flush() when you're ready to output, then keep going for the second page. If it doesn't work, you may also need to call flush() right before (or maybe it was after...). Link to comment Share on other sites More sharing options...
Synook Posted March 7, 2010 Share Posted March 7, 2010 Note that depending on your server / browser, the page may just load all at once anyway - if you truly want to load things one at a time you should make the requests asynchronously with AJAX. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.