flush

(PHP 4, PHP 5, PHP 7, PHP 8)

flushFlush system output buffer

Descrição

flush(): void

Flushes the system write buffers of PHP and the backend used by PHP (e.g.: CGI, a web server). In a command line environment flush() will attempt to flush the contents of the buffers only whereas in a web context headers and the contents of the buffers are flushed.

Nota: flush() may not be able to override the buffering scheme of the web server and it has no effect on any client-side buffering in the browser.

Nota: This function does not have any effect on user level output handlers such as those started by ob_start() or output_add_rewrite_var().

Aviso

flush() can interfere with output handlers that set and send headers in a web context (e.g. ob_gzhandler()) by sending headers before these handlers can do so.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Nenhum valor é retornado.

Veja Também

  • ob_flush() - Descarrega (envia) o valor de retorno do manipulador de saída ativo
  • ob_clean() - Limpa (apaga) o conteúdo do buffer de saída ativo
  • ob_end_flush() - Flush (send) the return value of the active output handler and turn the active output buffer off
  • ob_end_clean() - Clean (erase) the contents of the active output buffer and turn it off
To Top