cvs: phpdoc-fr /reference/info/functions dl.xml /reference/rar/functions rar-extract.xml /reference/strings/functions explode.xml

From: Date: Wed, 20 Sep 2006 20:53:34 +0000
Subject: cvs: phpdoc-fr /reference/info/functions dl.xml /reference/rar/functions rar-extract.xml /reference/strings/functions explode.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-5058@lists.php.net to get a copy of this message
yannick Wed Sep 20 20:53:34 2006 UTC Modified files: /phpdoc-fr/reference/info/functions dl.xml /phpdoc-fr/reference/rar/functions rar-extract.xml /phpdoc-fr/reference/strings/functions explode.xml Log: sync with EN http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/info/functions/dl.xml?r1=1.17&r2=1.18&diff_format=u Index: phpdoc-fr/reference/info/functions/dl.xml diff -u phpdoc-fr/reference/info/functions/dl.xml:1.17 phpdoc-fr/reference/info/functions/dl.xml:1.18 --- phpdoc-fr/reference/info/functions/dl.xml:1.17 Mon Jun 19 19:51:42 2006 +++ phpdoc-fr/reference/info/functions/dl.xml Wed Sep 20 20:53:34 2006 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> -<!-- EN-Revision: 1.22 Maintainer: didou Status: ready --> +<!-- $Revision: 1.18 $ --> +<!-- EN-Revision: 1.23 Maintainer: didou Status: ready --> <!-- Reviewed: yes --> + <refentry id="function.dl"> <refnamediv> <refname>dl</refname> @@ -39,7 +40,8 @@ chargées (via le &php.ini; ou <function>dl</function>). </para> <para> - La fonction <function>dl</function> est obsolète depuis &php; 5. + Depuis &php; 5, la fonction <function>dl</function> est obsolète + dans tous les SAPI, <emphasis>excepté</emphasis> <acronym>CLI</acronym>. Utilisez les <link linkend="ini.extension">directives d'extensions de chargement</link> à la place. </para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/rar/functions/rar-extract.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-fr/reference/rar/functions/rar-extract.xml diff -u phpdoc-fr/reference/rar/functions/rar-extract.xml:1.3 phpdoc-fr/reference/rar/functions/rar-extract.xml:1.4 --- phpdoc-fr/reference/rar/functions/rar-extract.xml:1.3 Mon Aug 28 12:53:51 2006 +++ phpdoc-fr/reference/rar/functions/rar-extract.xml Wed Sep 20 20:53:34 2006 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.2 Maintainer: dams Status: ready --> <!-- Reviewed: no --> + <refentry id="function.Rar-extract"> <refnamediv> <refname>Rar::extract</refname> @@ -41,6 +42,29 @@ ]]> </programlisting> </example> + <example> + <title>Comment extraire tous les fichiers d'une archive : </title> + <programlisting role="php"> +<![CDATA[ +<?php + +/* exemple fourni par Erik Jenssen aka erix */ + +$filename = "foobar.rar"; +$filepath = "/home/foo/bar/"; + +$rar_file = rar_open($filepath.$filename); +$list = rar_list($rar_file); +foreach($list as $file) { + $entry = rar_entry_get($rar_file, $file); + $entry->extract("."); // extraction dans le dossier courant +} +rar_close($rar_file); + +?> +]]> + </programlisting> + </example> <para> &return.success; </para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/explode.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/strings/functions/explode.xml diff -u phpdoc-fr/reference/strings/functions/explode.xml:1.16 phpdoc-fr/reference/strings/functions/explode.xml:1.17 --- phpdoc-fr/reference/strings/functions/explode.xml:1.16 Sun Apr 9 11:05:29 2006 +++ phpdoc-fr/reference/strings/functions/explode.xml Wed Sep 20 20:53:34 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry id="function.explode"> @@ -12,22 +12,22 @@ &reftitle.description; <methodsynopsis> <type>array</type><methodname>explode</methodname> - <methodparam><type>string</type><parameter>separator</parameter></methodparam> + <methodparam><type>string</type><parameter>delimiter</parameter></methodparam> <methodparam><type>string</type><parameter>string</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> </methodsynopsis> <para> <methodname>explode</methodname> retourne un tableau de chaînes. Ce sont les sous-chaînes extraites de <parameter>string</parameter>, - en utilisant le séparateur <parameter>separator</parameter>. + en utilisant le séparateur <parameter>delimiter</parameter>. Si <parameter>limit</parameter> est fourni, le tableau retourné aura un maximum de <parameter>limit</parameter> éléments, et le dernier élément du tableau contiendra le reste de la chaîne <parameter>string</parameter>. </para> <para> - Si <parameter>separator</parameter> est une chaîne vide (""), + Si <parameter>delimiter</parameter> est une chaîne vide (""), <function>explode</function> retournera &false;. Si - <parameter>separator</parameter> contient une valeur qui n'est pas contenue + <parameter>delimiter</parameter> contient une valeur qui n'est pas contenue dans <parameter>string</parameter>, alors <function>explode</function> retournera un tableau, contenant la chaîne <parameter>string</parameter> entière. @@ -41,7 +41,7 @@ Bien que <function>implode</function> puisse, pour des raisons historiques, accepter ces paramètres dans n'importe quel ordre, <function>explode</function> ne le peut pas. - Vous devez vous assurer que le paramètre <parameter>separator</parameter> + Vous devez vous assurer que le paramètre <parameter>delimiter</parameter> soit placé avant le paramètre <parameter>string</parameter>. </para> <note>

« previous php.doc.fr (#5058) next »