nohn Sat Apr 13 05:49:18 2002 EDT Modified files: /phpdoc/de Translators /phpdoc/de/functions bzip2.xml Log: Updated to EN-Revision 1.20 Index: phpdoc/de/Translators diff -u phpdoc/de/Translators:1.295 phpdoc/de/Translators:1.296 --- phpdoc/de/Translators:1.295 Wed Apr 10 11:55:09 2002 +++ phpdoc/de/Translators Sat Apr 13 05:49:18 2002 @@ -89,7 +89,7 @@ array.xml Thomas Schöfbeck fertig (bis V 1.168) aspell.xml Friedhelm Betz fertig (bis V 1.19) bc.xml Friedhelm Betz fertig (bis 1.23) -bzip2.xml Sebastian Nohn fertig (bis V 1.11) +bzip2.xml Sebastian Nohn fertig (bis V 1.20) calendar.xml Hartmut Holzgraefe fertig ccvs.xml Peter Petermann fertig classobj.xml Hartmut Holzgraefe fertig Index: phpdoc/de/functions/bzip2.xml diff -u phpdoc/de/functions/bzip2.xml:1.8 phpdoc/de/functions/bzip2.xml:1.9 --- phpdoc/de/functions/bzip2.xml:1.8 Sat Feb 2 10:33:58 2002 +++ phpdoc/de/functions/bzip2.xml Sat Apr 13 05:49:18 2002 @@ -1,24 +1,53 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.11 Maintainer: nohn Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.20 Maintainer: nohn Status: ready --> <reference id="ref.bzip2"> <title>Bzip2 Komprimierungsfunktionen</title> <titleabbrev>Bzip2</titleabbrev> <partintro> <para> - Dieses Module nutzt die Funktionen der <ulink - url="&url.bzip2;">bzip2</ulink>-Bibliothek von Julian Seward, um - transparent bzip2 (.bz2)-komprimierte Dateien lesen und schreiben zu - können. + Die bzip2-Funktionen werden benutzt, um transparent bzip2 + (.bz2)-komprimierte Dateien lesen und schreiben zu können. </para> - <para> - Die Bzip2-Unterstützung in PHP ist nicht standardmäßig aktiviert. Es ist - erforderlich, die <link - linkend="install.configure.with-bzip2">--with-bz2</link>-Option beim - compilieren von PHP zu aktivieren. Dazu ist die bzip2/libbzip2 version - >= 1.0.x. nötig. + + <section id="bzip2.requirements"> + <title>Voraussetzungen</title> + <para> + Dieses Module nutzt die Funktionen der <ulink + url="&url.bzip2;">bzip2</ulink>-Bibliothek von Julian Seward. + </para> + </section> + + <section id="bzip2.installation"> + <title>Installation</title> + <para> + Die Bzip2-Unterstützung in PHP ist nicht standardmäßig aktiviert. Es ist + erforderlich, die <link + linkend="install.configure.with-bzip2">--with-bz2</link>-Option beim + compilieren von PHP zu aktivieren. Dazu ist die bzip2/libbzip2 version + >= 1.0.x. nötig. </para> - + <section id="bzip2.configuration"> + <title>Konfiguration</title> + &no.config; + </title> + </section> + + <section id="bzip2.resources"> + <title>Ressource-Typen</title> + <para> + Dieses Erweitertung definierte einen Resource-Typen: Einen + Dateizeiger, der die Datei idenitfiziert, mit der gearbeitet werden + soll. + </para> + </section> + + <section id="bzip2.constants"> + <title>Vordefinierte Konstanten</title> + &no.constants; + </section> + + <sect1 id="bzip2-example"> <title>Ein kleines Code-Beispiel</title> <para> @@ -28,6 +57,7 @@ <example> <title>Ein kleines <function>bzip2</function> Beispiel</title> <programlisting role="php"> +<![CDATA[ <?php $filename = "/tmp/testfile.bz2"; @@ -54,6 +84,7 @@ bzclose($bz); ?> +]]> </programlisting> </example> </sect1> @@ -76,7 +107,7 @@ referenziert wird. </para> <para> - Gibt &true; bei Erfolg und &false; bei einem Fehler zurück. + &return.success; </para> <para> Der Dateizeiger muß gültig sein, und auf eine Datei zeigen, die @@ -126,11 +157,14 @@ <para> <example> <title><function>bzcompress</function> Beispiel</title> - <programlisting role="php"><?php + <programlisting role="php"> +<![CDATA[ +<?php $str = "sample data"; $bzstr = bzcompress($str, 9); print( $bzstr ); ?> +]]> </programlisting> </example> </para> @@ -165,7 +199,9 @@ <para> <example> <title><function>bzdecompress</function></title> - <programlisting role="php"><?php + <programlisting role="php"> +<![CDATA[ +<?php $start_str = "This is not an honest face?"; $bzstr = bzcompress($start_str); @@ -178,6 +214,7 @@ print( $str ); print( "\n<br>n" ); ?> +]]> </programlisting> </example> </para> @@ -230,12 +267,15 @@ <para> <example> <title><function>bzerror</function> Beispiel</title> - <programlisting role="php"><?php + <programlisting role="php"> +<![CDATA[ +<?php $error = bzerror($bz); echo $error["errno"]; echo $error["errstr"]; ?> +]]> </programlisting> </example> </para> @@ -284,7 +324,7 @@ <parameter>bz</parameter>. </para> <para> - Gibt &true; bei Erfolg, &false; bei einem Fehler zurück. + &return.sucess; </para> <para> Siehe auch <function>bzread</function> und <function>bzwrite</function>. @@ -292,7 +332,6 @@ </refsect1> </refentry> - <refentry id="function.bzopen"> <refnamediv> <refname>bzopen</refname> @@ -319,7 +358,9 @@ <para> <example> <title><function>bzopen</function> Beispiel</title> - <programlisting role="php"><?php + <programlisting role="php"> +<![CDATA[ +<?php $bz = bzopen("/tmp/foo.bz2", "r"); $decompressed_file = bzread($bz, filesize("/tmp/foo.bz2")); bzclose($bz); @@ -328,6 +369,7 @@ print( "\n<br>n" ); print( $decompressed_file ); ?> +]]> </programlisting> </example> </para> @@ -363,11 +405,14 @@ <para> <example> <title><function>bzread</function> Beispiel</title> - <programlisting role="php"><?php + <programlisting role="php"> +<[!CDATA[ +<?php $bz = bzopen("/tmp/foo.bz2", "r"); $str = bzread($bz, 2048); print( $str ); ?> +]]> </programlisting> </example> </para> @@ -402,12 +447,15 @@ <para> <example> <title><function>bzwrite</function> Beispiel</title> - <programlisting role="php"><?php + <programlisting role="php"> +<![CDATA[ +<?php $str = "uncompressed data"; $bz = bzopen("/tmp/foo.bz2", "w"); bzwrite($bz, $str, strlen($str)); bzclose($bz); ?> +]]> </programlisting> </example> </para>