Re: Screen Refresh (possible?)
| From: | Toby Miller | Date: | Wed, 27 Sep 2000 17:06:20 +0000 |
| Subject: | Re: Screen Refresh (possible?) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17760@lists.php.net to get a copy of this message | ||
Thanks guys,
I've got it working now. I'm using a process running in a hidden frame which
is simply making javascript calls to update the status bar of the browser
window. I might try to make a cool little status bar function out of it
later, but at least the user has a way to see what's going on now. Using
flush was the missing element. I should have linked it in my head with ASP's
response.buffer and response.flush, but it didn't click until you guys
mentioned it.
Thanks,
Toby
----- Original Message -----
From: "Charles Killian" <Charles@AlcatrazDesignGroup.com>
To: "Toby Miller" <tmiller@creativegeneration.com>
Cc: <php-general@lists.php.net>
Sent: Wednesday, September 27, 2000 12:43 PM
Subject: Re: [PHP] Screen Refresh (possible?)
> I'm not sure you can keep reloading the entire frame but you can use
flush()
> to push the data in queue to the browser.
>
> Charles
> ----- Original Message -----
> Sent: Wednesday, September 27, 2000 8:01 AM
> Subject: [PHP] Screen Refresh (possible?)
>
>
> Hey all,
>
> I've run across a situation that doesn't seem to have a resolution. I hope
> I'm wrong about that.
>
> If I have a memory/cpu intensive process running in one of my scripts
> (intensive enough to keep calling set_time_limit to keep it going) then I
am
> unable to print results/updates to the screen during the process. I have
> tried this with no success. Any ouput I attempt to push to the screen
> doesn't show up until the process is complete.
>
> What I'm actually doing is checking an email pop account. I would like to
> send a javascript call after every message downloaded (in another frame)
to
> update a progress counter to let the user know what's going on. Without
this
> ability a lot of users may think the script is failing or stalled and hit
> cancel or reload.
>
> The only point of reference I can come up with is writing a windows app in
> Visual Basic. You can cause a form to refresh during a process like this
> which will correctly update the form. Does anyone know of any way to get
the
> same result in PHP for the browser?
>
> Thanks in advance,
> Toby
>