luk Fri Jun 21 17:42:31 2002 EDT
Added files:
/phpdoc-cs/reference/bzip2 reference.xml
/phpdoc-cs/reference/bzip2/functions bzclose.xml
Log:
Index: phpdoc-cs/reference/bzip2/reference.xml
+++ phpdoc-cs/reference/bzip2/reference.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.3 Maintainer: luk Status: ready -->
<reference id="ref.bzip2">
<title>Kompresn� funkce bzip2</title>
<titleabbrev>Bzip2</titleabbrev>
<partintro>
<section id="bzip2.intro">
&reftitle.intro;
<para>
Funkce bzip2 se pou��vaj� k transparentn�mu �ten� a z�pisu soubor�
komprimovan�ch algoritmem bzip2 (.bz2).
</para>
</section>
<section id="bzip2.requirements">
&reftitle.required;
<para>
Tento modul pou��v� funkce z knihovny <ulink
url="&url.bzip2;">bzip2</ulink> od Juliana Sewarda.
</para>
</section>
<section id="bzip2.installation">
&reftitle.install;
<para>
Podpora bzip2 nen� v PHP implicitn� k dispozici. K aktivaci budete muset
p�i kompilaci PHP pou��t konfigura�n� volbu
<link linkend="install.configure.with-bz2">--with-bz2</link>. Tento modul
vy�aduje bzip2/libbzip2 verze >= 1.0.x.
</para>
</section>
<section id="bzip2.configuration">
&reftitle.runtime;
&no.config;
</section>
<section id="bzip2.resources">
&reftitle.resources;
<para>
Toto roz���en� definuje jeden typ prost�edku: souborov� ukazatel
identifikuj�c� soubor bz2, nad kter�m se pracuje.
</para>
</section>
<section id="bzip2.constants">
&reftitle.constants;
&no.constants;
</section>
<section id="bzip2.examples">
&reftitle.examples;
<para>
Tento p��klad otev�e do�asn� soubor a zap��e do n�j testovac� �etezec;
potom vyp��e obsah souboru.
</para>
<example>
<title>Mal� p��klad na bzip2</title>
<programlisting role="php">
<![CDATA[
<?php
$filename = "/tmp/testfile.bz2";
$str = "Toto je testovac� �et�zec.\n";
// otev�i soubor pro z�pis
$bz = bzopen($filename, "w");
// zapo� �et�zec do souboru
bzwrite($bz, $str);
// zav�i soubor
bzclose($bz);
// otev�i soubor pro �ten�
$bz = bzopen($filename, "r");
// p�e�ti 10 znak�
print bzread($bz, 10);
// tiskni dokud nen� konec souboru (nebo n�sleduj�c� 1024. znak) a zav�i soubor
print bzread($bz);
bzclose($bz);
?>
]]>
</programlisting>
</example>
</section>
</partintro>
&reference.bzip2.functions;
</reference>
<!-- 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:
-->
Index: phpdoc-cs/reference/bzip2/functions/bzclose.xml
+++ phpdoc-cs/reference/bzip2/functions/bzclose.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: luk Status: ready -->
<refentry id="function.bzclose">
<refnamediv>
<refname>bzclose</refname>
<refpurpose>Zav�e ukazatel na soubor bzip2</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>bzclose</methodname>
<methodparam><type>resource</type><parameter>bz</parameter></methodparam>
</methodsynopsis>
<para>
Zav�e soubor bzip2 odkazovan� ukazatelem <parameter>bz</parameter>.
</para>
<para>
&return.success;
</para>
<para>
Ukazatel na soubor mus� b�t platn� a mus� ukazovat na soubor �sp�n�
otev�en� pomoc� <function>bzopen</function>.
</para>
<para>
Viz tak� <function>bzopen</function>.
</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:
-->