mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-28 14:58:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237780 c90b9560-bf6c-de11-be94-00142212c4b1
78 lines
2.3 KiB
XML
78 lines
2.3 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.7 $ -->
|
|
<refentry id="function.flush">
|
|
<refnamediv>
|
|
<refname>flush</refname>
|
|
<refpurpose>Flush the output buffer</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>void</type><methodname>flush</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
Flushes the output buffers of PHP and whatever backend PHP is using (CGI,
|
|
a web server, etc). This effectively tries to push all the output so far
|
|
to the user's browser.
|
|
</para>
|
|
<para>
|
|
<function>flush</function> has no effect on the buffering scheme of your
|
|
web server or the browser on the client side.
|
|
Thus you need to call both <function>ob_flush</function> and
|
|
<function>flush</function> to flush the output buffers.
|
|
</para>
|
|
<para>
|
|
Several servers, especially on Win32, will still buffer the output from
|
|
your script until it terminates before transmitting the results to the
|
|
browser.
|
|
</para>
|
|
<para>
|
|
Server modules for Apache like mod_gzip may do buffering of their own that
|
|
will cause <function>flush</function> to not result in data being sent
|
|
immediately to the client.
|
|
</para>
|
|
<para>
|
|
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.
|
|
</para>
|
|
<para>
|
|
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.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.void;
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|