Jump to content

Listing Processes As They Occur


ApocalypeX

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...