Re: ob_flush, does it cause data to be sent over the wire immediately?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 11, 2011 at 4:05 AM, Tolas Anon <tolas777@xxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux