Re: ob_flush, does it cause data to be sent over the wire immediately?
| From: | Tolas Anon | Date: | Fri, 11 Feb 2011 12:29:57 +0000 |
| Subject: | Re: ob_flush, does it cause data to be sent over the wire immediately? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311246@lists.php.net to get a copy of this message | ||
On Fri, Feb 11, 2011 at 4:05 AM, Tolas Anon <tolas777@gmail.com> wrote:
> Hi..
>
> For my curl_exec problem,
>
> http://readlist.com/lists/lists.php.net/php-general/16/81195.html
> http://curl.haxx.se/mail/lib-2011-02/0101.html
>
> I need to know if this simple test will cause data to be sent every 25
> seconds _over the wire_.
>
> <?php
> set_time_limit (0);
> error_reporting (E_ALL);
> for ($i=0; $i<((3600+1800)/25); $i++) {
> echo '.';
> ob_flush();
> sleep (25);
> };
> echo "wanted-data";
> ?>
>
> reason; i just can't get my media import routines that only send
> sporadic status messages to work for big video files.
>
well, first off i should be using php:flush() instead of
php:ob_flush() in my simple test.
second;
http://www.php.net/manual/en/function.flush.php
:
....
Several servers, especially on Win32, will still buffer the output
from your script until it terminates before transmitting the results
to the browser.
.....
aargh..
well, i'll have to dig deep here.
will inform you of any relevant progress, digest style