Re: How to Display a page while script runs?
| From: | Richard Lynch | Date: | Fri, 03 Nov 2006 21:27:27 +0000 |
| Subject: | Re: How to Display a page while script runs? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244183@lists.php.net to get a copy of this message | ||
<?php
echo "<p>Waiting 20 seconds for a web page is rather inexcusable,
isn't it?</p>\n";
echo str_repeat(' ', 2048);
flush();
//rest of script here
?>
On Thu, November 2, 2006 3:46 pm, Chris wrote:
>
> I have a php script which takes maybe 15-20 seconds to run, however
> until it
> completes a blank web page is displayed to the user. Is there a
> way/method
> which would enable me to give some feedback to the user while the
> script is
> running so the blank page is not displayed?
>
> Best,
> Chris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?