cvs: phpdoc-cs /reference/bzip2 reference.xml /reference/bzip2/functions bzclose.xml
| From: | Lukas Jelinek | Date: | Fri, 21 Jun 2002 21:42:31 +0000 |
| Subject: | cvs: phpdoc-cs /reference/bzip2 reference.xml /reference/bzip2/functions bzclose.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969346867@lists.php.net to get a copy of this message | ||
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:
-->