-3

Possible Duplicate:
PHP echo-ing content as page loads

I have a php page that has to load a heavy table, so after the page request there is a lot of time to wait.

Is it possible to send the page initially empty and, during the php page loading, send to the client the results, so one can see what has been loaded so far? (not a loading bar).

Community
  • 1
  • 1
Mewster
  • 1,057
  • 3
  • 11
  • 21

1 Answers1

1

Yes. It's called flushing the document early. At its simplest, output some amount of HTML, and then calling flush();. As with most things, the devil is in the details of exactly what and when things would happen.

Alister Bulman
  • 34,482
  • 9
  • 71
  • 110