<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.outcontrol.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.flush.php',
    1 => 'flush',
    2 => 'Leert (sendet) den System-Ausgabepuffer',
  ),
  'up' => 
  array (
    0 => 'ref.outcontrol.php',
    1 => 'Output-Control-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'ref.outcontrol.php',
    1 => 'Output-Control-Funktionen',
  ),
  'next' => 
  array (
    0 => 'function.ob-clean.php',
    1 => 'ob_clean',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/outcontrol/functions/flush.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.flush" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">flush</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">flush</span> &mdash; <span class="dc-title">Leert (sendet) den System-Ausgabepuffer</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.flush-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>flush</strong></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   Leert die Ausgabepuffer des PHP-Systems und des von PHP verwendeten
   Backends (z. B. CGI, Webserver). In einer Kommandozeilenumgebung versucht
   <span class="function"><strong>flush()</strong></span> nur den Inhalt der Puffer zu leeren, während in
   einem webbasierten Kontext auch die Header geleert werden.
  </p>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <span class="simpara">
    <span class="function"><strong>flush()</strong></span> ist möglicherweise nicht in der Lage, das
    Pufferverhalten des Webservers zu beeinflussen und hat keine Auswirkungen
    auf die clientseitige Pufferung im Browser.
   </span>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <span class="simpara">
    Diese Funktion hat keine Auswirkungen benutzerdefinierte Ausgabe-Handler,
    also z. B. solche, die durch <span class="function"><a href="function.ob-start.php" class="function">ob_start()</a></span> oder
    <span class="function"><a href="function.output-add-rewrite-var.php" class="function">output_add_rewrite_var()</a></span> gestartet werden.
   </span>
  </p></blockquote>
  <div class="warning"><strong class="warning">Warnung</strong>
   <p class="simpara">
    <span class="function"><strong>flush()</strong></span> kann Ausgabe-Handler stören, die Header in einem
    Web-Kontext setzen und senden (z. B. <span class="function"><a href="function.ob-gzhandler.php" class="function">ob_gzhandler()</a></span>),
    indem sie Header senden, bevor diese Handler dies tun können.
   </p>
  </div>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.flush-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.flush-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Es wird kein Wert zurückgegeben.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.flush-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.4.0</td>
      <td>
       Header können nun auch im FastCGI-Modus ohne Body geleert werden.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.flush-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ob-flush.php" class="function" rel="rdfs-seeAlso">ob_flush()</a> - Leert (sendet) den R&uuml;ckgabewert des aktiven Ausgabe-Handlers</span></li>
    <li><span class="function"><a href="function.ob-clean.php" class="function" rel="rdfs-seeAlso">ob_clean()</a> - L&ouml;scht den Inhalt des aktiven Ausgabepuffer</span></li>
    <li><span class="function"><a href="function.ob-end-flush.php" class="function" rel="rdfs-seeAlso">ob_end_flush()</a> - Leert (sendet) den R&uuml;ckgabewert des aktiven Ausgabe-Handlers und
   deaktiviert den aktiven Ausgabepuffer</span></li>
    <li><span class="function"><a href="function.ob-end-clean.php" class="function" rel="rdfs-seeAlso">ob_end_clean()</a> - L&ouml;scht den Inhalt des aktiven Ausgabepuffers und deaktiviert ihn</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>