Re: status note for scripts that run a long time
From: Guillaume Brocker (guillaume.brocker_at_ircad.u-strasbg.fr)
Date: 03/25/04
- Next message: Marek Kotowski: "Building portable server addresses"
- Previous message: Egon Schneider: "PHP forum / external login"
- In reply to: Kevin Thorpe: "Re: status note for scripts that run a long time"
- Next in thread: lars knut: "Re: status note for scripts that run a long time"
- Reply: lars knut: "Re: status note for scripts that run a long time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 25 Mar 2004 12:37:00 +0100
Kevin Thorpe wrote:
> Alvaro G Vicario wrote:
>
>> *** lars knut wrote/escribió (25 Mar 2004 02:17:35 -0800):
>>
>>> So I wonder if there's a way to tell the user, that the script is still
>>> running and he's got to wait.
>>
>>
>>
>> In this situation, I normally use "echo"'s:
>>
>> echo "Processing row #" . $row_nr;
>
>
> I've tried that but Apache caches the php output and it all appears
> together at the end. Is there any way to force buffering off?
Well, apache is doing some caching, but PHP too. To send the output
buffer of PHP, use *flush*. I'm using this in some of my scripts to send
to the browser the output produced by shell scripts while they are
running and it works fine.
-- Guillaume Brocker
- Next message: Marek Kotowski: "Building portable server addresses"
- Previous message: Egon Schneider: "PHP forum / external login"
- In reply to: Kevin Thorpe: "Re: status note for scripts that run a long time"
- Next in thread: lars knut: "Re: status note for scripts that run a long time"
- Reply: lars knut: "Re: status note for scripts that run a long time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|