DoctorD
Guest
снова таймеры
Есть вот такой вот простой пример
<?php
echo date('h:i:s') . "\n";
sleep(10);
echo date('h:i:s') . "\n";
?>
как сделать так чтобы 1 дату передавал браузеру потом слипился, а потом 2ю дату передавал.. Использую flush() перед слипом но не помогает, возможно это связано с
Several servers, especially on Win32, will still buffer the output from your script until it terminates before transmitting the results to the browser.
Server modules for Apache like mod_gzip may do buffering of their own that will cause flush() to not result in data being sent immediately to the client.
Even the browser may buffer its input before displaying it. Netscape, for example, buffers text until it receives an end-of-line or the beginning of a tag, and it won't render tables until the </table> tag of the outermost table is seen.
! Хотя тестю на IE
Some versions of Microsoft Internet Explorer will only start to display the page after they have received 256 bytes of output, so you may need to send extra whitespace before flushing to get those browsers to display the page.
! возможно тут косяк ?
помогите плз...
Есть вот такой вот простой пример
<?php
echo date('h:i:s') . "\n";
sleep(10);
echo date('h:i:s') . "\n";
?>
как сделать так чтобы 1 дату передавал браузеру потом слипился, а потом 2ю дату передавал.. Использую flush() перед слипом но не помогает, возможно это связано с
Several servers, especially on Win32, will still buffer the output from your script until it terminates before transmitting the results to the browser.
Server modules for Apache like mod_gzip may do buffering of their own that will cause flush() to not result in data being sent immediately to the client.
Even the browser may buffer its input before displaying it. Netscape, for example, buffers text until it receives an end-of-line or the beginning of a tag, and it won't render tables until the </table> tag of the outermost table is seen.
! Хотя тестю на IE
Some versions of Microsoft Internet Explorer will only start to display the page after they have received 256 bytes of output, so you may need to send extra whitespace before flushing to get those browsers to display the page.
! возможно тут косяк ?
помогите плз...