Jump to content

Archived

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

judeddokoinu

Live Output

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.