Jump to content

Listing Processes As They Occur


ApocalypeX
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...