cvs: phpdoc-fr /reference/bzip2 configure.xml reference.xml /reference/bzip2/functions bzclose.xml bzcompress.xml bzdecompress.xml bzerror.xml
bzflush.xml bzopen.xml bzread.xml bzwrite.xml

From: Date: Mon, 02 Jun 2003 16:30:24 +0000
Subject: cvs: phpdoc-fr /reference/bzip2 configure.xml reference.xml /reference/bzip2/functions bzclose.xml bzcompress.xml bzdecompress.xml bzerror.xml
bzflush.xml bzopen.xml bzread.xml bzwrite.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-458@lists.php.net to get a copy of this message
dams Mon Jun 2 12:30:24 2003 EDT Added files: /phpdoc-fr/reference/bzip2 configure.xml Modified files: /phpdoc-fr/reference/bzip2 reference.xml /phpdoc-fr/reference/bzip2/functions bzclose.xml bzcompress.xml bzdecompress.xml bzerror.xml bzflush.xml bzopen.xml bzread.xml bzwrite.xml Log: spring commit

Index: phpdoc-fr/reference/bzip2/reference.xml diff -u phpdoc-fr/reference/bzip2/reference.xml:1.2 phpdoc-fr/reference/bzip2/reference.xml:1.3 --- phpdoc-fr/reference/bzip2/reference.xml:1.2 Mon Apr 15 20:52:39 2002 +++ phpdoc-fr/reference/bzip2/reference.xml Mon Jun 2 12:30:24 2003 @@ -1,49 +1,84 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.bzip2"> <title>Compression Bzip2</title> <titleabbrev>Bzip2</titleabbrev> <partintro> - <para> - Ce module utilise les fonctions de la librairie + <section id="bzip2.intro"> + &reftitle.intro; + <para> + Les fonctions bzip2 servent &agrave; lire et &eacute;crire dans les fichiers compress&eacute;s + avec la m&eacute;thode bzip2 (.bz2). Il est possible de lire et d'&eacute;crire de tels + fichiers. + </para> + </section> + + <section id="bzip2.requirements"> + &reftitle.required; + <para> + Ce module utilise les fonctions de la librairie <ulink url="&url.bzip2;">bzip2</ulink>, de Julian Seward pour &eacute;crire et lire des fichier bzip2 (.bz2) de mani&egrave;re transparente. - </para> - <para> - Le support <acronym>bzip2</acronym> par PHP n'est pas activ&eacute; par - d&eacute;faut. Vous devez utiliser l'option de configuration - <link linkend="install.configure.with-bzip2-dir"><option role="configure">--with-bz2[=DIR]</option></link> - lors de la compilation de PHP pour l'activer. Ce module requiert la librairie - bzip2/libbzip2, version &gt;= 1.0.x. - </para> - <section id="bzip2-example"> - <title>Exemple de compression bzip2</title> + </para> + </section> + + &reference.bzip2.configure; + + <section id="bzip2.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="bzip2.resources"> + &reftitle.resources; + <para> + Cette extension d&eacute;finit un type de ressource : un pointeur de fichier, identifiant + un fichier compress&eacute; bzip2. + </para> + </section> + + <section id="bzip2.constants"> + &reftitle.constants; + &no.constants; + </section> + + <section id="bzip2.examples"> + &reftitle.examples; <para> Cet exemple ouvre un fichier temporaire, et &eacute;crit une ligne de test, puis il en affiche le contenu. - </para> <example> - <title>Exemple avec bzip2</title> + <title>Small bzip2 Example</title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $filename = "/tmp/fichier_de_test.bz2"; $str = "Ceci est une cha&icirc;ne de test.\n"; + // ouvre le fichier en &eacute;criture $bz = bzopen($filename, "w"); + // &eacute;crit une cha&icirc;ne dans le fichier bzwrite($bz, $str); + // ferme le fichier bzclose($bz); + // ouvre le fichier en lecture $bz = bzopen($filename, "r"); + // lit 10 caract&egrave;res print bzread($bz, 10); + // affiche tout le reste du fichier, puis le ferme print bzread($bz); + bzclose($bz); -?&gt; - </programlisting> - </example> +?> +]]> + </programlisting> + </example> + </para> </section> </partintro> Index: phpdoc-fr/reference/bzip2/functions/bzclose.xml diff -u phpdoc-fr/reference/bzip2/functions/bzclose.xml:1.2 phpdoc-fr/reference/bzip2/functions/bzclose.xml:1.3 --- phpdoc-fr/reference/bzip2/functions/bzclose.xml:1.2 Tue Aug 13 22:19:29 2002 +++ phpdoc-fr/reference/bzip2/functions/bzclose.xml Mon Jun 2 12:30:24 2003 @@ -17,8 +17,7 @@ repr&eacute;sent&eacute; par le pointeur <parameter>bz</parameter>. </para> <para> - <function>bzclose</function> retourne &true; - en cas de succ&egrave;s, et &false;sinon. + &return.success; </para> <para> Le pointeur de fichier <parameter>bz</parameter> doit &ecirc;tre Index: phpdoc-fr/reference/bzip2/functions/bzcompress.xml diff -u phpdoc-fr/reference/bzip2/functions/bzcompress.xml:1.1 phpdoc-fr/reference/bzip2/functions/bzcompress.xml:1.2 --- phpdoc-fr/reference/bzip2/functions/bzcompress.xml:1.1 Sun Apr 14 20:22:25 2002 +++ phpdoc-fr/reference/bzip2/functions/bzcompress.xml Mon Jun 2 12:30:24 2003 @@ -37,10 +37,12 @@ <example> <title>Exemple avec <function>bzcompress</function></title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $str = "donn&eacute;es de test"; $bzstr = bzcompress($str, 9); -?&gt; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/bzip2/functions/bzdecompress.xml diff -u phpdoc-fr/reference/bzip2/functions/bzdecompress.xml:1.2 phpdoc-fr/reference/bzip2/functions/bzdecompress.xml:1.3 --- phpdoc-fr/reference/bzip2/functions/bzdecompress.xml:1.2 Tue Aug 13 22:19:29 2002 +++ phpdoc-fr/reference/bzip2/functions/bzdecompress.xml Mon Jun 2 12:30:24 2003 @@ -29,9 +29,11 @@ <example> <title>Exemple avec <function>bzdecompress</function></title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $str = $bzdecompress($bzstr); -?&gt; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/bzip2/functions/bzerror.xml diff -u phpdoc-fr/reference/bzip2/functions/bzerror.xml:1.1 phpdoc-fr/reference/bzip2/functions/bzerror.xml:1.2 --- phpdoc-fr/reference/bzip2/functions/bzerror.xml:1.1 Sun Apr 14 20:22:26 2002 +++ phpdoc-fr/reference/bzip2/functions/bzerror.xml Mon Jun 2 12:30:24 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>array</type><methodname>bzerror</methodname> - <methodparam><type>int</type><parameter>bz</parameter></methodparam> + <methodparam><type>resource</type><parameter>bz</parameter></methodparam> </methodsynopsis> <para> <function>bzerror</function> retourne le num&eacute;ro et le message d'erreur @@ -24,11 +24,13 @@ <example> <title>Exemple avec <function>bzerror</function></title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $error = bzerror($bz); echo $error["errno"]; echo $error["errstr"]; -?&gt; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/bzip2/functions/bzflush.xml diff -u phpdoc-fr/reference/bzip2/functions/bzflush.xml:1.2 phpdoc-fr/reference/bzip2/functions/bzflush.xml:1.3 --- phpdoc-fr/reference/bzip2/functions/bzflush.xml:1.2 Tue Aug 13 22:19:29 2002 +++ phpdoc-fr/reference/bzip2/functions/bzflush.xml Mon Jun 2 12:30:24 2003 @@ -19,8 +19,7 @@ fichier repr&eacute;sent&eacute; par <parameter>bz</parameter>. </para> <para> - <function>bzflush</function> retourne &true; - en cas de succ&egrave;s, et &false;sinon. + &return.success; </para> <para> Voir aussi Index: phpdoc-fr/reference/bzip2/functions/bzopen.xml diff -u phpdoc-fr/reference/bzip2/functions/bzopen.xml:1.1 phpdoc-fr/reference/bzip2/functions/bzopen.xml:1.2 --- phpdoc-fr/reference/bzip2/functions/bzopen.xml:1.1 Sun Apr 14 20:22:26 2002 +++ phpdoc-fr/reference/bzip2/functions/bzopen.xml Mon Jun 2 12:30:24 2003 @@ -22,16 +22,18 @@ </para> <para> Si l'ouverture &eacute;choue, <function>bzopen</function> retourne - <literal>FALSE</literal>, sinon, elle retourne un pointeur + &false;, sinon, elle retourne un pointeur de fichier. </para> <para> <example> <title>Exemple avec <function>bzopen</function></title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $bz = bzopen("/tmp/foo.bz2", "r"); -?&gt; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/bzip2/functions/bzread.xml diff -u phpdoc-fr/reference/bzip2/functions/bzread.xml:1.1 phpdoc-fr/reference/bzip2/functions/bzread.xml:1.2 --- phpdoc-fr/reference/bzip2/functions/bzread.xml:1.1 Sun Apr 14 20:22:26 2002 +++ phpdoc-fr/reference/bzip2/functions/bzread.xml Mon Jun 2 12:30:24 2003 @@ -29,11 +29,13 @@ <example> <title>Exemple avec <function>bzread</function></title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $bz = bzopen("/tmp/foo.bz2", "r"); $str = bzread($bz, 2048); echo $str; -?&gt; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/bzip2/functions/bzwrite.xml diff -u phpdoc-fr/reference/bzip2/functions/bzwrite.xml:1.1 phpdoc-fr/reference/bzip2/functions/bzwrite.xml:1.2 --- phpdoc-fr/reference/bzip2/functions/bzwrite.xml:1.1 Sun Apr 14 20:22:26 2002 +++ phpdoc-fr/reference/bzip2/functions/bzwrite.xml Mon Jun 2 12:30:24 2003 @@ -27,11 +27,13 @@ <example> <title>Exemple <function>bzwrite</function></title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $str = "donn&eacute;es non compress&eacute;es"; $bz = bzopen("/tmp/foo.bz2", "w"); bzwrite($bz, $str, strlen($str)); -?&gt; +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/bzip2/configure.xml +++ phpdoc-fr/reference/bzip2/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="bzip2.installation"> &reftitle.install; <para> Le support <acronym>bzip2</acronym> par PHP n'est pas activ&eacute; par d&eacute;faut. Vous devez utiliser l'option de configuration <option role="configure">--with-bz2[=DIR]</option> lors de la compilation de PHP pour l'activer. Ce module requiert la librairie bzip2/libbzip2, version &gt;= 1.0.x. </para> </section> <!-- 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 -->
« previous php.doc.fr (#458) next »