cece Wed Feb 6 08:54:35 2002 EDT
Modified files:
/phpdoc/hu/functions outcontrol.xml
Log:
sync with en
Index: phpdoc/hu/functions/outcontrol.xml
diff -u phpdoc/hu/functions/outcontrol.xml:1.10 phpdoc/hu/functions/outcontrol.xml:1.11
--- phpdoc/hu/functions/outcontrol.xml:1.10 Sat Feb 2 10:41:26 2002
+++ phpdoc/hu/functions/outcontrol.xml Wed Feb 6 08:54:35 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.15 Maintainer: cece Status: ready -->
+<!-- EN-Revision: 1.26 Maintainer: cece Status: ready -->
<reference id="ref.outcontrol">
<title>Kimenet Szab�lyoz� F�ggv�nyek</title>
@@ -25,7 +25,8 @@
<example>
<title>Kimenet Szab�lyz�s P�lda</title>
<programlisting role="php">
-<?php
+<![CDATA[
+<?php
ob_start();
echo "Szia\n";
@@ -34,7 +35,8 @@
ob_end_flush();
-?>
+?>
+]]>
</programlisting>
</example>
</para>
@@ -83,6 +85,12 @@
am�g annak fut�sa be nem fejez�dik.
</para>
<para>
+ Az Apache szerver moduljai, mint p�ld�ul a mod_gzip
+ is rendelkezhetnek saj�t pufferel�si rendszerrel. Ez�ltal
+ lehets�ges, hogy a <function>flush</function> megh�v�sa
+ nem eredm�nyez azonnali adatk�ld�st a b�ng�sz� fele.
+ </para>
+ <para>
Az is lehets�ges m�g, hogy a b�ng�sz� maga puffereli a
kapott adatokat. P�ld�ul a Netscape a kapott html-t
puffereli, am�g egy sorv�ge jellel nem tal�lkozik,
@@ -163,7 +171,8 @@
<example>
<title>Felhaszn�l� �ltal �rt pufferm�dos�t� f�ggv�ny haszn�lata</title>
<programlisting role="php">
-<?php
+<![CDATA[
+<?php
function callback($buffer) {
@@ -174,30 +183,32 @@
ob_start("callback");
-?>
-
-<html>
-<body>
-<p>S�rre bor, mindenkor!
-</body>
-</html>
+?>
+<html>
+<body>
+<p>S�rre bor, mindenkor!
+</body>
+</html>
-<?php
+<?php
ob_end_flush();
-?>
+?>
+]]>
</programlisting>
</example>
<para>
A k�vetkez� kimenet j�n l�tre:
<informalexample>
<programlisting role="php">
-<html>
-<body>
-<p>Borra bor, mindenkor!
-</body>
-</html>
+<![CDATA[
+<html>
+<body>
+<p>Borra bor, mindenkor!
+</body>
+</html>
+]]>
</programlisting>
</informalexample>
</para>
@@ -261,6 +272,31 @@
</refsect1>
</refentry>
+ <refentry id="function.ob-get-level">
+ <refnamediv>
+ <refname>ob_get_level</refname>
+ <refpurpose>
+ Visszaadja a vizsg�lt puffer egym�sba �gyazotts�gi szintj�t.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Le�r�s</title>
+ <methodsynopsis>
+ <type>int</type><methodname>ob_get_level</methodname>
+ <void/>
+ </methodsynopsis>
+ <para>
+ T�bb, egym�sba �gyazott pufferel�st is aktiv�lhatunk egy php
+ oldalon bel�l. Ekkor ezzel a f�ggv�nnyel tudjuk egy puffer�l
+ meg�llap�tani annak be�gyazotts�gi m�lys�g�t.
+ </para>
+ <para>
+ L�sd m�g: <function>ob_start</function> �s
+ <function>ob_get_contents</function>.
+ </para>
+ </refsect1>
+ </refentry>
+
<refentry id="function.ob-gzhandler">
<refnamediv>
<refname>ob_gzhandler</refname>
@@ -273,7 +309,13 @@
<methodsynopsis>
<type>string</type><methodname>ob_gzhandler</methodname>
<methodparam><type>string</type><parameter>puffer</parameter></methodparam>
+ <methodparam
+choice="opt"><type>int</type><parameter>m�d</parameter></methodparam>
</methodsynopsis>
+ <note>
+ <para>
+ A <parameter>m�d</parameter> param�ter a 4.0.5-�s PHP verzi�t�l felfele
+haszn�lhat�.
+ </para>
+ </note>
<para>
Az <function>ob_gzhandler</function> f�ggv�ny arra
lett l�trehozva, hogy az <function>ob_start</function>
@@ -294,16 +336,18 @@
<example>
<title><function>ob_gzhandler</function> P�lda</title>
<programlisting role="php">
-<?php
+<![CDATA[
+<?php
ob_start("ob_gzhandler");
?>
-<html>
-<body>
-<p>Ez egy t�m�r�tett oldal lesz (tal�n). :)
-</html>
-</body>
+<html>
+<body>
+<p>Ez egy t�m�r�tett oldal lesz (tal�n). :)
+</html>
+</body>
+]]>
</programlisting>
</example>
</para>
@@ -313,7 +357,70 @@
</para>
</refsect1>
</refentry>
-
+
+ <refentry id="function.ob-flush">
+ <refnamediv>
+ <refname>ob_flush</refname>
+ <refpurpose>
+ A kimeneti puffer �r�t�se (kik�ld�se)
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Le�r�s</title>
+ <methodsynopsis>
+ <type>void</type><methodname>ob_flush</methodname>
+ <void/>
+ </methodsynopsis>
+ <para>
+ E f�ggv�ny elk�ldi a kimeneti puffer tartam�t a kimenetre,
+ Ha sz�ks�g lenne m�g a puffer
+ tartalm�ra esetleges k�s�bbi m�veletekhez, az
+ <function>ob_get_contents</function> f�ggv�ny seg�ts�g�vel
+ tudod v�ltoz�ba menteni azt, miel�tt m�g az
+ <function>ob_flush</function> megh�v�sra ker�lne.
+ </para>
+ <para>
+ Ezt alkalmazva nem sz�nik meg a kimeneti puffer,
+ az <function>ob_end_flush</function> f�ggv�nnyel ellent�tben.
+ </para>
+ <para>
+ L�sd m�g: <function>ob_get_contents</function>,
+ <function>ob_clean</function>,
+ <function>ob_end_flush</function>, �s
+ <function>ob_end_clean</function>.
+ </para>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.ob-clean">
+ <refnamediv>
+ <refname>ob_clean</refname>
+ <refpurpose>
+ A kimeneti puffer t�rl�se
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Le�r�s</title>
+ <methodsynopsis>
+ <type>void</type><methodname>ob_clean</methodname>
+ <void/>
+ </methodsynopsis>
+ <para>
+ E f�ggv�ny alkalmaz�s�val teljesen megsemmis�thetj�k a
+ kimeneti puffer tartalm�t.
+ </para>
+ <para>
+ Ezt alkalmazva nem sz�nik meg a kimeneti puffer,
+ az <function>ob_end_clean</function> f�ggv�nnyel ellent�tben.
+ </para>
+ <para>
+ L�sd m�g: <function>ob_flush</function>,
+ <function>ob_end_flush</function> �s
+ <function>ob_end_clean</function>.
+ </para>
+ </refsect1>
+ </refentry>
+
<refentry id="function.ob-end-flush">
<refnamediv>
<refname>ob_end_flush</refname>
@@ -337,7 +444,8 @@
</para>
<para>
L�sd m�g: <function>ob_start</function>,
- <function>ob_get_contents</function>, �s
+ <function>ob_get_contents</function>,
+ <function>ob_flush</function> �s
<function>ob_end_clean</function>.
</para>
</refsect1>
@@ -362,7 +470,8 @@
a pufferel�st is egyben.
</para>
<para>
- L�sd m�g: <function>ob_start</function> �s
+ L�sd m�g: <function>ob_start</function>,
+ <function>ob_clean</function> �s
<function>ob_end_flush</function>.
</para>
</refsect1>