
Loading a page little by little
Quote:
> I am writing a php script to check the validity of webpage links i
> have stored in my database. I can check them OK, but I have a lot of
> them and it takes a few minutes to check them all (before any results
> get displayed). Is there a way I could update the browser to reflect
> each validated link after they have been validated? I have seen this
> done on some sites, such as http://tycho.usno.navy.mil/cgi-bin/anim.
> Do i have to keep reloading the page with the new results or is there
> some other way to do it? Please advise.
You can call flush() to send output, but it is not guaranteed to work (per
the docs). flush() is a "suggestion" to the web server that it send any
pending output to the client, but the server is not obligated to pay it any
attention.
http://www.php.net/flush
See the important notes there, especially the notes for Windows servers.
--
----- stephan beal
Registered Linux User #71917 http://counter.li.org
I speak for myself, not my employer. Contents may
be hot. Slippery when wet. Reading disclaimers makes
you go blind. Writing them is worse. You have been Warned.