flush()


void flush (void)

Description

flush() flushes the output buffer
This attempts to push current output all the way to the browser.

※ available F/W version : all

Parameters

None

Return values

No value is returned.

Example

<?php
echo "<html>\r\n";
echo "<head>\r\n";
echo "<title> This is a sample web page</title>\r\n";

echo "<body>\r\n";

for($cnt = 0; $cnt < 100; $cnt++)
{
    echo "This is a body[$cnt]: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXZYabcdefghijklmnopqrstuvwxzy<br>";
    if(!($cnt%100)) flush();
}

echo "</body>\r\n";

echo "</html>\r\n";
?>

See also

None

Remarks

This function is identical to the PHP group’s flush() function.