User Tools

Site Tools


uphp:functions:flush

flush

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Flush current output to the browser

Description

flush ( )

This function will send out any pending buffered data immediately

Parameters

None

Return Values

None

Example

<?
  print("This data will be buffered for a while...");
  flush();
  print("Buffering will start again here...");
?>

Note

This function attempts to push current output all the way to the browser with a few caveats:

  • flush() has no effect on any client-side buffering in the browser
  • Results vary by browser: different browsers have different requirements for displaying anything before the end of the script or page
  • To overcome these browser buffering issues and obtain immediate display, you may have to send a minimum amount of data, an end-of-line (EOL) character or an html tag
  • See http://php.net/manual/en/function.flush.php for more insight into differences between browsers and the use of flush()

See Also

print() - Print data to the current output stream such as a web page or terminal

uphp/functions/flush.txt · Last modified: 2021/09/13 05:57 (external edit)