Jump to content


Photo

Live Output


  • Please log in to reply
1 reply to this topic

#1 judeddokoinu

judeddokoinu
  • Members
  • PipPip
  • Member
  • 19 posts

Posted 20 April 2006 - 10:52 PM

I've got a script that scrapes a webpage into a variable, and then loops through the content, echoing each line, but it doesn't show anything on the webpage until it is completed with the loop. Is there a way to show the content *as* it is processed? I'd like to get the content to the user faster.

#2 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 20 April 2006 - 11:06 PM

PHP typically doesn't output anything until the entire page has finished what it is doing. If you're always accessing the same content, you could try caching it every so often.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users