cvs: phpdoc /fr/appendices migration4.xml phpdevel.xml /fr/features file-upload.xml http-auth.xml /fr/functions datetime.xml filesystem.xml
ibase.xml imap.xml ldap.xml mbstring.xml ming.xml misc.xml mnogosearch.xml pcre.xml pdf.xml pgsql.xml sesam.xml strings.xml var.xml yaz.xml
/fr/language variables.xml
| From: | Hartmut Holzgraefe | Date: | Tue, 29 Jan 2002 23:18:22 +0000 |
| Subject: | cvs: phpdoc /fr/appendices migration4.xml phpdevel.xml /fr/features file-upload.xml http-auth.xml /fr/functions datetime.xml filesystem.xml ibase.xml imap.xml ldap.xml mbstring.xml ming.xml misc.xml mnogosearch.xml pcre.xml pdf.xml pgsql.xml sesam.xml strings.xml var.xml yaz.xml /fr/language variables.xml |
||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969341732@lists.php.net to get a copy of this message | ||
hholzgra Tue Jan 29 18:18:22 2002 EDT
Modified files:
/phpdoc/fr/appendices migration4.xml phpdevel.xml
/phpdoc/fr/features file-upload.xml http-auth.xml
/phpdoc/fr/functions datetime.xml filesystem.xml ibase.xml imap.xml
ldap.xml mbstring.xml ming.xml misc.xml
mnogosearch.xml pcre.xml pdf.xml pgsql.xml
sesam.xml strings.xml var.xml yaz.xml
/phpdoc/fr/language variables.xml
Log:
entity fixes
Index: phpdoc/fr/appendices/migration4.xml diff -u phpdoc/fr/appendices/migration4.xml:1.10 phpdoc/fr/appendices/migration4.xml:1.11 --- phpdoc/fr/appendices/migration4.xml:1.10 Wed Dec 12 15:48:43 2001 +++ phpdoc/fr/appendices/migration4.xml Tue Jan 29 18:18:13 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <appendix id="migration4"> <title>Migration de PHP 3.0 à PHP 4.0</title> <sect1 id="migration4.changes"> @@ -231,11 +231,11 @@ erreurs, hormis les alertes de style, qui sont repérées par la constante : E_NOTICE. Il suffit d'ajouter la valeur suivante dans le fichier <filename>php.ini</filename>: - <literal>error_reporting = E_ALL & ~ ( E_NOTICE )</literal>. + <literal>error_reporting = E_ALL & ~ ( E_NOTICE )</literal>. Si vous voulez supprimer en plus les alertes, vous pouvez ajouter la constante appropriée, en la combinant avec l'opérateur OU logique '|': - <literal>error_reporting= E_ALL & ~ ( E_NOTICE | E_WARNING )</literal>. + <literal>error_reporting= E_ALL & ~ ( E_NOTICE | E_WARNING )</literal>. </para> <warning> <para> Index: phpdoc/fr/appendices/phpdevel.xml diff -u phpdoc/fr/appendices/phpdevel.xml:1.17 phpdoc/fr/appendices/phpdevel.xml:1.18 --- phpdoc/fr/appendices/phpdevel.xml:1.17 Wed Dec 12 15:48:43 2001 +++ phpdoc/fr/appendices/phpdevel.xml Tue Jan 29 18:18:14 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <appendix id="phpdevel"> <title>Développement PHP</title> <sect1 id="phpdevel-addfunc"> @@ -34,7 +34,7 @@ </programlisting> </example> NOTE: Les arguments peuvent être passé par valeur ou par - référence. Dans les deux cas, vous devez passer &(pval *) + référence. Dans les deux cas, vous devez passer &(pval *) à getParameters. Si vous voulez vérifier que le n-ième paramètre a été passé par référence ou par valeur, vous devez utiliser la fonction Index: phpdoc/fr/features/file-upload.xml diff -u phpdoc/fr/features/file-upload.xml:1.12 phpdoc/fr/features/file-upload.xml:1.13 --- phpdoc/fr/features/file-upload.xml:1.12 Wed Dec 12 15:48:50 2001 +++ phpdoc/fr/features/file-upload.xml Tue Jan 29 18:18:14 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <chapter id="features.file-upload"> <title>Gestion des chargements de fichier</title> <sect1 id="features.file-upload.post-method"> @@ -155,7 +155,7 @@ <function>is_uploaded_file</function> et <function>move_uploaded_file</function>. </para> <programlisting role="php"> -<?;php +<?;php if (is_uploaded_file($userfile)) { copy($userfile, "/dossier/des/fichiers/telecharges/"); } else { @@ -170,7 +170,7 @@ chose comme ceci : </para> <programlisting role="php"> -<?;php +<?;php /* Test du fichier téléchargé. */ function is_uploaded_file($filename) { if (!$tmp_file = get_cfg_var('upload_tmp_dir')) { Index: phpdoc/fr/features/http-auth.xml diff -u phpdoc/fr/features/http-auth.xml:1.10 phpdoc/fr/features/http-auth.xml:1.11 --- phpdoc/fr/features/http-auth.xml:1.10 Wed Dec 12 15:48:51 2001 +++ phpdoc/fr/features/http-auth.xml Tue Jan 29 18:18:15 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <chapter id="features.http-auth"> <title>Authentification HTTP avec PHP</title> <simpara> @@ -86,7 +86,7 @@ echo "Vous devez entrer un nom d'utilisateur valide et un mot de passe correct pour accéder à cette ressource\n"; exit; } - if(!isset($PHP_AUTH_USER) || ($SeenBefore == 1 && !strcmp($OldAuth, $PHP_AUTH_USER)) ) { + if(!isset($PHP_AUTH_USER) || ($SeenBefore == 1 && !strcmp($OldAuth, $PHP_AUTH_USER)) ) { authenticate(); } else { Index: phpdoc/fr/functions/datetime.xml diff -u phpdoc/fr/functions/datetime.xml:1.24 phpdoc/fr/functions/datetime.xml:1.25 --- phpdoc/fr/functions/datetime.xml:1.24 Wed Dec 12 15:49:04 2001 +++ phpdoc/fr/functions/datetime.xml Tue Jan 29 18:18:15 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> +<!-- $Revision: 1.25 $ --> <reference id="ref.datetime"> <title>Dates et heures</title> <titleabbrev>Date/heure</titleabbrev> @@ -704,7 +704,7 @@ return ((float)$usec + (float)$sec); } $time_start = getmicrotime(); - for ($i=0; $i < 1000; $i++){ + for ($i=0; $i < 1000; $i++){ //ne rien faire, pendant un millier de fois... } $time_end = getmicrotime(); Index: phpdoc/fr/functions/filesystem.xml diff -u phpdoc/fr/functions/filesystem.xml:1.28 phpdoc/fr/functions/filesystem.xml:1.29 --- phpdoc/fr/functions/filesystem.xml:1.28 Wed Dec 12 15:49:11 2001 +++ phpdoc/fr/functions/filesystem.xml Tue Jan 29 18:18:15 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> +<!-- $Revision: 1.29 $ --> <reference id="ref.filesystem"> <title>Système de fichiers</title> <titleabbrev>Système de fichiers</titleabbrev> @@ -592,7 +592,7 @@ $num = count ($data); print "<p> $num champs dans la ligne $row: <br>"; $row++; - for ($c=0; $c<$num; $c++) { + for ($c=0; $c<$num; $c++) { print $data[$c] . "<br>"; } } Index: phpdoc/fr/functions/ibase.xml diff -u phpdoc/fr/functions/ibase.xml:1.11 phpdoc/fr/functions/ibase.xml:1.12 --- phpdoc/fr/functions/ibase.xml:1.11 Wed Dec 12 15:49:17 2001 +++ phpdoc/fr/functions/ibase.xml Tue Jan 29 18:18:16 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <reference id="ref.ibase"> <title>InterBase</title> <titleabbrev>InterBase</titleabbrev> @@ -7,7 +7,7 @@ <para> Interbase est une base de données populaire, créée par Borland/Inprise. Pour plus d'informations sur Interbase, allez à - <ulink url="&url.ibase">&url.ibase;</ulink>. + <ulink url="&url.ibase;">&url.ibase;</ulink>. Par ailleurs, Interbase vient de rejoindre le mouvement Open Source! </para> <note> @@ -354,7 +354,7 @@ // helio@helio.com.br 08-Dec-2000 02:53 $rs=ibase_query("Select * from unetable"); $coln = ibase_num_fields($rs); -for ($i=0 ; $i < $coln ; $i++) { +for ($i=0 ; $i < $coln ; $i++) { $col_info = ibase_field_info($rs, $i); echo "nom: ".$col_info['name']."\n"; echo "alias: ".$col_info['alias']."\n"; Index: phpdoc/fr/functions/imap.xml diff -u phpdoc/fr/functions/imap.xml:1.17 phpdoc/fr/functions/imap.xml:1.18 --- phpdoc/fr/functions/imap.xml:1.17 Wed Dec 12 15:49:20 2001 +++ phpdoc/fr/functions/imap.xml Tue Jan 29 18:18:16 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <reference id="ref.imap"> <title>IMAP</title> <titleabbrev>IMAP</titleabbrev> @@ -83,7 +83,7 @@ (en anglais): <ulink url="&url.email.book;">Programming Internet Email</ulink> par David Wood et <ulink url="&url.imap.book;">Managing - IMAP</ulink> par Dianna Mullet & Kevin Mullet. + IMAP</ulink> par Dianna Mullet & Kevin Mullet. </para> </partintro> <refentry id="function.imap-8bit"> Index: phpdoc/fr/functions/ldap.xml diff -u phpdoc/fr/functions/ldap.xml:1.12 phpdoc/fr/functions/ldap.xml:1.13 --- phpdoc/fr/functions/ldap.xml:1.12 Wed Dec 12 15:49:23 2001 +++ phpdoc/fr/functions/ldap.xml Tue Jan 29 18:18:17 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <reference id="ref.ldap"> <title>LDAP</title> <titleabbrev>LDAP</titleabbrev> @@ -518,7 +518,7 @@ <title>Enumérer tous les messages d'erreur LDAP</title> <programlisting role="php"> <?php - for($i=0; $i<100; $i++) { + for($i=0; $i<100; $i++) { printf("Error $i: %s<br>\n", ldap_str2err($i)); } ?> @@ -805,7 +805,7 @@ $entry = ldap_first_entry($ds, $sr); $attrs = ldap_get_attributes($ds, $entry); echo $attrs["count"]." Attributs dans cette entrée:<p>"; - for ($i=0; $i<$attrs["compte"]; $i++) + for ($i=0; $i<$attrs["compte"]; $i++) echo $attrs[$i]."<br>"; ?> </programlisting> Index: phpdoc/fr/functions/mbstring.xml diff -u phpdoc/fr/functions/mbstring.xml:1.6 phpdoc/fr/functions/mbstring.xml:1.7 --- phpdoc/fr/functions/mbstring.xml:1.6 Sun Jan 6 19:09:54 2002 +++ phpdoc/fr/functions/mbstring.xml Tue Jan 29 18:18:17 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <reference id="ref.mbstring"> <title>Chaînes de caractères multi-octets</title> <titleabbrev>Chaînes de caractères multi-octets</titleabbrev> @@ -658,7 +658,7 @@ <example> <title>Exemple avec <function>mb_internal_encoding</function></title> <programlisting role="php"> -<?;php +<?php /* Utilise l'encodage interne UTF-8 */ mb_internal_encoding("UTF-8"); /* Affiche l'encodage interne courant */ @@ -1286,7 +1286,7 @@ <example> <title>Exemple avec <function>mb_strimwidth</function></title> <programlisting role="php"> -<?;php +<?php $str = mb_strimwidth($str, 0, 40, "..>"); ?> </programlisting> Index: phpdoc/fr/functions/ming.xml diff -u phpdoc/fr/functions/ming.xml:1.9 phpdoc/fr/functions/ming.xml:1.10 --- phpdoc/fr/functions/ming.xml:1.9 Wed Dec 12 15:49:28 2001 +++ phpdoc/fr/functions/ming.xml Tue Jan 29 18:18:17 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <reference id="ref.ming"> <title>Ming pour Flash</title> <titleabbrev>Ming (Flash)</titleabbrev> @@ -719,7 +719,7 @@ $i1 = text(0xff, 0x33, 0x33, 0xff, 900, 1200, 800, 0.03, $thetext); $i2 = text(0x00, 0x33, 0xff, 0x7f, -560, 1200, 800, 0.04, $thetext); $i3 = text(0xff, 0xff, 0xff, 0x9f, 180, 1200, 800, 0.001, $thetext); - for($i=1; $i<=100; ++$i) + for($i=1; $i<=100; ++$i) { $i1 = step($i1); $i2 = step($i2); @@ -1050,7 +1050,7 @@ $m->setDimension(320, 240); $i = $m->add($p); $i->moveTo(160, 120); - for($n=0; $n<=1.001; $n+=0.01) + for($n=0; $n<=1.001; $n+=0.01) { $i->setRatio($n); $m->nextFrame(); @@ -1137,7 +1137,7 @@ $m = new SWFMovie(); $m->setDimension($b->getWidth(), $b->getHeight()); $i = $m->add($s); - for($n=0; $n<=20; ++$n) + for($n=0; $n<=20; ++$n) { $i->multColor(1.0-$n/10, 1.0, 1.0); $i->addColor(0xff*$n/20, 0, 0); @@ -1394,7 +1394,7 @@ $m->setDimension($width, $height); $i = $m->add($p); $i->moveTo($width/2, $height/2); - for($n=0; $n<1.001; $n+=0.03) + for($n=0; $n<1.001; $n+=0.03) { $i->setRatio($n); $m->nextFrame(); @@ -1861,15 +1861,15 @@ $m->setDimension(640, 480); $m->setBackground(0xcc, 0xcc, 0xcc); // décide un fond à damier - for($y=0; $y<480; $y+=40) + for($y=0; $y<480; $y+=40) { - for($x=0; $x<640; $x+=80) + for($x=0; $x<640; $x+=80) { $i = $m->add($c); $i->moveTo($x, $y); } $y+=40; - for($x=40; $x<640; $x+=80) + for($x=40; $x<640; $x+=80) { $i = $m->add($c); $i->moveTo($x, $y); @@ -2125,7 +2125,7 @@ $m->setBackground(0xff, 0xff, 0xff); $i = $m->add($p); $i->moveTo(1500,1000); - for($r=0.0; $r<=1.0; $r+=0.1) + for($r=0.0; $r<=1.0; $r+=0.1) { $i->setRatio($r); $m->nextFrame(); Index: phpdoc/fr/functions/misc.xml diff -u phpdoc/fr/functions/misc.xml:1.13 phpdoc/fr/functions/misc.xml:1.14 --- phpdoc/fr/functions/misc.xml:1.13 Wed Dec 12 15:49:29 2001 +++ phpdoc/fr/functions/misc.xml Tue Jan 29 18:18:19 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <reference id="ref.misc"> <title>Fonctions diverses</title> <titleabbrev>Divers</titleabbrev> @@ -503,7 +503,7 @@ <HEAD> <TITLE>Affichage de Source</TITLE> </HEAD> -<BODY BGCOLOR="white"?> +<BODY BGCOLOR="white"?> <?php $script = getenv ("PATH_TRANSLATED"); if(!$script) { Index: phpdoc/fr/functions/mnogosearch.xml diff -u phpdoc/fr/functions/mnogosearch.xml:1.10 phpdoc/fr/functions/mnogosearch.xml:1.11 --- phpdoc/fr/functions/mnogosearch.xml:1.10 Wed Dec 12 15:49:32 2001 +++ phpdoc/fr/functions/mnogosearch.xml Tue Jan 29 18:18:19 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <reference id="ref.mnogo"> <title>mnoGoSearch</title> <titleabbrev>mnoGoSearch</titleabbrev> @@ -50,7 +50,7 @@ </simpara> <simpara> Plus de détails sur le site officiel de mnoGoSearch : <ulink - url="&url.mnogo">&url.mnogo;</ulink>. + url="&url.mnogo;">&url.mnogo;</ulink>. </simpara> </partintro> <refentry id="function.udm-add-search-limit"> Index: phpdoc/fr/functions/pcre.xml diff -u phpdoc/fr/functions/pcre.xml:1.28 phpdoc/fr/functions/pcre.xml:1.29 --- phpdoc/fr/functions/pcre.xml:1.28 Wed Dec 12 15:49:40 2001 +++ phpdoc/fr/functions/pcre.xml Tue Jan 29 18:18:19 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> +<!-- $Revision: 1.29 $ --> <reference id="ref.pcre"> <title>Expressions régulières compatibles Perl</title> <titleabbrev>PCRE</titleabbrev> @@ -452,7 +452,7 @@ // et les espaces. Il remplace aussi quelques entités HTML // courante en leur équivalent texte. $search = array ("'<script[?>]*?>.*?</script>'si", // Supprime le javascript - "'<[\/\!]*?[^<?>]*?>'si", // Supprime les balises HTML + "'<[\/\!]*?[^<?>]*?>'si", // Supprime les balises HTML "'([\r\n])[\s]+'", // Supprime les espaces "'&(quot|#34);'i", // Supprime les entites HTML "'&(amp|#38);'i", @@ -2515,7 +2515,7 @@ attendu, et s'aperçoit rapidement qu'il n'y a pas ce caractère). </para> <para> - Si le masque utilisé est <literal>((?>\D+)|&;lt;\d+>)*[!?]</literal> + Si le masque utilisé est <literal>((?>\D+)|<\d+>)*[!?]</literal> les séquences de chiffres ne peuvent pas être trouvées, et l'échec intervient rapidement. </para> Index: phpdoc/fr/functions/pdf.xml diff -u phpdoc/fr/functions/pdf.xml:1.18 phpdoc/fr/functions/pdf.xml:1.19 --- phpdoc/fr/functions/pdf.xml:1.18 Wed Dec 12 15:49:42 2001 +++ phpdoc/fr/functions/pdf.xml Tue Jan 29 18:18:19 2002 @@ -8,7 +8,7 @@ fichiers PDF, pour peu que vous ayez la bibliothèque PDF de Thomas Merz (disponible à : <ulink url="&url.pdf;">&url.pdf;</ulink> (site anglais)). Vous aurez - aussi besoin des librairies <ulink url="&url.jpeg">JPEG library</ulink>, + aussi besoin des librairies <ulink url="&url.jpeg;">JPEG library</ulink>, <ulink url="&url.tiff;">the TIFF library</ulink>, pour compiler cette librairie. Ces deux librairies posent pas mal de problèmes lors de la configuration. Suivez attentivement les messages d'erreur. Index: phpdoc/fr/functions/pgsql.xml diff -u phpdoc/fr/functions/pgsql.xml:1.15 phpdoc/fr/functions/pgsql.xml:1.16 --- phpdoc/fr/functions/pgsql.xml:1.15 Wed Dec 12 15:49:43 2001 +++ phpdoc/fr/functions/pgsql.xml Tue Jan 29 18:18:19 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> +<!-- $Revision: 1.16 $ --> <reference id="ref.pgsql"> <title>PostgreSQL</title> <titleabbrev>PostgreSQL</titleabbrev> @@ -159,7 +159,7 @@ <?php $result = pg_exec($conn, "INSERT INTO verlag VALUES ('Auteur')"); $cmdtuples = pg_cmdtuples($result); -echo $cmdtuples . " <- tuples modifiés."; +echo $cmdtuples . " <- tuples modifiés."; ?> </programlisting> </example> @@ -427,9 +427,9 @@ exit; } $arr = pg_fetch_array($result, 0); -echo $arr[0] . " <- array\n"; +echo $arr[0] . " <- array\n"; $arr = pg_fetch_array($result, 1); -echo $arr["author"] . " <- array\n"; +echo $arr["author"] . " <- array\n"; ?> </programlisting> </example> Index: phpdoc/fr/functions/sesam.xml diff -u phpdoc/fr/functions/sesam.xml:1.9 phpdoc/fr/functions/sesam.xml:1.10 --- phpdoc/fr/functions/sesam.xml:1.9 Sun Jan 6 19:09:55 2002 +++ phpdoc/fr/functions/sesam.xml Tue Jan 29 18:18:20 2002 @@ -814,7 +814,7 @@ <?php if (sesam_connect ("moncatalogue", "monschema", "toto")) { if (sesam_execimm("INSERT INTO matable VALUES (*, 'Petit Test', <0, 8, 15>)") - && sesam_execimm("INSERT INTO autretable VALUES (*, 'Autre Test', 1)")) + && sesam_execimm("INSERT INTO autretable VALUES (*, 'Autre Test', 1)")) sesam_commit(); else sesam_rollback(); @@ -1830,7 +1830,7 @@ } // Affiche la table print "<TABLE BORDER>\n"; -while (($row = sesam_fetch_array ($result)) && count($row) > 0) { +while (($row = sesam_fetch_array ($result)) && count($row) > 0) { print " <TR>\n"; print " <TD>".htmlspecialchars($row["firstname"])."</TD>\n"; print " <TD>".htmlspecialchars($row["lastname"])."</TD>\n"; Index: phpdoc/fr/functions/strings.xml diff -u phpdoc/fr/functions/strings.xml:1.48 phpdoc/fr/functions/strings.xml:1.49 --- phpdoc/fr/functions/strings.xml:1.48 Sun Jan 6 19:09:55 2002 +++ phpdoc/fr/functions/strings.xml Tue Jan 29 18:18:20 2002 @@ -645,8 +645,8 @@ </programlisting> </example> La variable <literal>$encoded</literal> va contenir désormais : "Hallo - &<sgmltag>amp</sgmltag>; &<sgmltag>lt</sgmltag>;Frau&<sgmltag>gt</sgmltag>; - &<sgmltag>amp</sgmltag>; Kr&<sgmltag>auml</sgmltag>;mer". + &<sgmltag>amp</sgmltag>; &<sgmltag>lt</sgmltag>;Frau&<sgmltag>gt</sgmltag>; + &<sgmltag>amp</sgmltag>; Kr&<sgmltag>auml</sgmltag>;mer". </para> <para> <function>array_flip</function> est alors très efficace pour inverser la @@ -1388,7 +1388,7 @@ <para> Le métaphone a été développée par Lawrence Philips <lphilips@verity.com>. Elle est décrite dans - ["Practical Algorithms for Programmers", Binstock & Rex, Addison Wesley, 1995]. + ["Practical Algorithms for Programmers", Binstock & Rex, Addison Wesley, 1995]. <note> <para> C<function>metaphone</function> a été ajoutée @@ -2730,7 +2730,7 @@ } // versions plus anciennes que 4.0b3: $pos = strpos("b", $machaine); - if (is_string($pos) && !$pos) { + if (is_string($pos) && !$pos) { // non trouvé } ?> @@ -2916,7 +2916,7 @@ } // versions plus anciennes que 4.0b3: $pos = strpos("b", $mystring); -if (is_string($pos) && !$pos) { +if (is_string($pos) && !$pos) { // non trouvé } ?> Index: phpdoc/fr/functions/var.xml diff -u phpdoc/fr/functions/var.xml:1.19 phpdoc/fr/functions/var.xml:1.20 --- phpdoc/fr/functions/var.xml:1.19 Sun Jan 6 19:09:55 2002 +++ phpdoc/fr/functions/var.xml Tue Jan 29 18:18:20 2002 @@ -211,7 +211,7 @@ n'est pas une ressource valide, une erreur est générée. <informalexample> <programlisting role="php"> -<?php +<?php $c = mysql_connect(); echo get_resource_type($c)."\n"; // affiche : mysql link Index: phpdoc/fr/functions/yaz.xml diff -u phpdoc/fr/functions/yaz.xml:1.19 phpdoc/fr/functions/yaz.xml:1.20 --- phpdoc/fr/functions/yaz.xml:1.19 Wed Dec 12 15:49:59 2001 +++ phpdoc/fr/functions/yaz.xml Tue Jan 29 18:18:20 2002 @@ -771,7 +771,7 @@ Transport ILL (Profile/1)" (Note du Traducteur : mailez moi de l'aide!). Reportez-vous <ulink url="&url.yaz.ill;">ici</ulink> ou aux - <ulink url="&url.yaz.specs">spécification</ulink>. + <ulink url="&url.yaz.specs;">spécification</ulink>. Le paramètre <parameter>args</parameter> doit être un tableau associatif, contenant les informations "Item Order" à envoyer. L'index du tableau est le nom ASN.1 correspondant au tag path. Par exemple, le numéro ISBN sous Index: phpdoc/fr/language/variables.xml diff -u phpdoc/fr/language/variables.xml:1.30 phpdoc/fr/language/variables.xml:1.31 --- phpdoc/fr/language/variables.xml:1.30 Wed Dec 12 15:50:10 2001 +++ phpdoc/fr/language/variables.xml Tue Jan 29 18:18:20 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.30 $ --> +<!-- $Revision: 1.31 $ --> <chapter id="language.variables"> <title>Les variables</title> <sect1 id="language.variables.basics"> @@ -61,7 +61,7 @@ </para> <para> Pour assigner par référence, ajoutez simplement - un & (ET commercial) au début de la variable qui + un & (ET commercial) au début de la variable qui est assignée (la variable source). Dans l'exemple suivant, "<literal>Mon nom est Pierre</literal>" s'affichera deux fois :
Index: phpdoc/fr/appendices/migration4.xml diff -u phpdoc/fr/appendices/migration4.xml:1.10 phpdoc/fr/appendices/migration4.xml:1.11 --- phpdoc/fr/appendices/migration4.xml:1.10 Wed Dec 12 15:48:43 2001 +++ phpdoc/fr/appendices/migration4.xml Tue Jan 29 18:18:13 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <appendix id="migration4"> <title>Migration de PHP 3.0 à PHP 4.0</title> <sect1 id="migration4.changes"> @@ -231,11 +231,11 @@ erreurs, hormis les alertes de style, qui sont repérées par la constante : E_NOTICE. Il suffit d'ajouter la valeur suivante dans le fichier <filename>php.ini</filename>: - <literal>error_reporting = E_ALL & ~ ( E_NOTICE )</literal>. + <literal>error_reporting = E_ALL & ~ ( E_NOTICE )</literal>. Si vous voulez supprimer en plus les alertes, vous pouvez ajouter la constante appropriée, en la combinant avec l'opérateur OU logique '|': - <literal>error_reporting= E_ALL & ~ ( E_NOTICE | E_WARNING )</literal>. + <literal>error_reporting= E_ALL & ~ ( E_NOTICE | E_WARNING )</literal>. </para> <warning> <para> Index: phpdoc/fr/appendices/phpdevel.xml diff -u phpdoc/fr/appendices/phpdevel.xml:1.17 phpdoc/fr/appendices/phpdevel.xml:1.18 --- phpdoc/fr/appendices/phpdevel.xml:1.17 Wed Dec 12 15:48:43 2001 +++ phpdoc/fr/appendices/phpdevel.xml Tue Jan 29 18:18:14 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <appendix id="phpdevel"> <title>Développement PHP</title> <sect1 id="phpdevel-addfunc"> @@ -34,7 +34,7 @@ </programlisting> </example> NOTE: Les arguments peuvent être passé par valeur ou par - référence. Dans les deux cas, vous devez passer &(pval *) + référence. Dans les deux cas, vous devez passer &(pval *) à getParameters. Si vous voulez vérifier que le n-ième paramètre a été passé par référence ou par valeur, vous devez utiliser la fonction Index: phpdoc/fr/features/file-upload.xml diff -u phpdoc/fr/features/file-upload.xml:1.12 phpdoc/fr/features/file-upload.xml:1.13 --- phpdoc/fr/features/file-upload.xml:1.12 Wed Dec 12 15:48:50 2001 +++ phpdoc/fr/features/file-upload.xml Tue Jan 29 18:18:14 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <chapter id="features.file-upload"> <title>Gestion des chargements de fichier</title> <sect1 id="features.file-upload.post-method"> @@ -155,7 +155,7 @@ <function>is_uploaded_file</function> et <function>move_uploaded_file</function>. </para> <programlisting role="php"> -<?;php +<?;php if (is_uploaded_file($userfile)) { copy($userfile, "/dossier/des/fichiers/telecharges/"); } else { @@ -170,7 +170,7 @@ chose comme ceci : </para> <programlisting role="php"> -<?;php +<?;php /* Test du fichier téléchargé. */ function is_uploaded_file($filename) { if (!$tmp_file = get_cfg_var('upload_tmp_dir')) { Index: phpdoc/fr/features/http-auth.xml diff -u phpdoc/fr/features/http-auth.xml:1.10 phpdoc/fr/features/http-auth.xml:1.11 --- phpdoc/fr/features/http-auth.xml:1.10 Wed Dec 12 15:48:51 2001 +++ phpdoc/fr/features/http-auth.xml Tue Jan 29 18:18:15 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <chapter id="features.http-auth"> <title>Authentification HTTP avec PHP</title> <simpara> @@ -86,7 +86,7 @@ echo "Vous devez entrer un nom d'utilisateur valide et un mot de passe correct pour accéder à cette ressource\n"; exit; } - if(!isset($PHP_AUTH_USER) || ($SeenBefore == 1 && !strcmp($OldAuth, $PHP_AUTH_USER)) ) { + if(!isset($PHP_AUTH_USER) || ($SeenBefore == 1 && !strcmp($OldAuth, $PHP_AUTH_USER)) ) { authenticate(); } else { Index: phpdoc/fr/functions/datetime.xml diff -u phpdoc/fr/functions/datetime.xml:1.24 phpdoc/fr/functions/datetime.xml:1.25 --- phpdoc/fr/functions/datetime.xml:1.24 Wed Dec 12 15:49:04 2001 +++ phpdoc/fr/functions/datetime.xml Tue Jan 29 18:18:15 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> +<!-- $Revision: 1.25 $ --> <reference id="ref.datetime"> <title>Dates et heures</title> <titleabbrev>Date/heure</titleabbrev> @@ -704,7 +704,7 @@ return ((float)$usec + (float)$sec); } $time_start = getmicrotime(); - for ($i=0; $i < 1000; $i++){ + for ($i=0; $i < 1000; $i++){ //ne rien faire, pendant un millier de fois... } $time_end = getmicrotime(); Index: phpdoc/fr/functions/filesystem.xml diff -u phpdoc/fr/functions/filesystem.xml:1.28 phpdoc/fr/functions/filesystem.xml:1.29 --- phpdoc/fr/functions/filesystem.xml:1.28 Wed Dec 12 15:49:11 2001 +++ phpdoc/fr/functions/filesystem.xml Tue Jan 29 18:18:15 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> +<!-- $Revision: 1.29 $ --> <reference id="ref.filesystem"> <title>Système de fichiers</title> <titleabbrev>Système de fichiers</titleabbrev> @@ -592,7 +592,7 @@ $num = count ($data); print "<p> $num champs dans la ligne $row: <br>"; $row++; - for ($c=0; $c<$num; $c++) { + for ($c=0; $c<$num; $c++) { print $data[$c] . "<br>"; } } Index: phpdoc/fr/functions/ibase.xml diff -u phpdoc/fr/functions/ibase.xml:1.11 phpdoc/fr/functions/ibase.xml:1.12 --- phpdoc/fr/functions/ibase.xml:1.11 Wed Dec 12 15:49:17 2001 +++ phpdoc/fr/functions/ibase.xml Tue Jan 29 18:18:16 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <reference id="ref.ibase"> <title>InterBase</title> <titleabbrev>InterBase</titleabbrev> @@ -7,7 +7,7 @@ <para> Interbase est une base de données populaire, créée par Borland/Inprise. Pour plus d'informations sur Interbase, allez à - <ulink url="&url.ibase">&url.ibase;</ulink>. + <ulink url="&url.ibase;">&url.ibase;</ulink>. Par ailleurs, Interbase vient de rejoindre le mouvement Open Source! </para> <note> @@ -354,7 +354,7 @@ // helio@helio.com.br 08-Dec-2000 02:53 $rs=ibase_query("Select * from unetable"); $coln = ibase_num_fields($rs); -for ($i=0 ; $i < $coln ; $i++) { +for ($i=0 ; $i < $coln ; $i++) { $col_info = ibase_field_info($rs, $i); echo "nom: ".$col_info['name']."\n"; echo "alias: ".$col_info['alias']."\n"; Index: phpdoc/fr/functions/imap.xml diff -u phpdoc/fr/functions/imap.xml:1.17 phpdoc/fr/functions/imap.xml:1.18 --- phpdoc/fr/functions/imap.xml:1.17 Wed Dec 12 15:49:20 2001 +++ phpdoc/fr/functions/imap.xml Tue Jan 29 18:18:16 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <reference id="ref.imap"> <title>IMAP</title> <titleabbrev>IMAP</titleabbrev> @@ -83,7 +83,7 @@ (en anglais): <ulink url="&url.email.book;">Programming Internet Email</ulink> par David Wood et <ulink url="&url.imap.book;">Managing - IMAP</ulink> par Dianna Mullet & Kevin Mullet. + IMAP</ulink> par Dianna Mullet & Kevin Mullet. </para> </partintro> <refentry id="function.imap-8bit"> Index: phpdoc/fr/functions/ldap.xml diff -u phpdoc/fr/functions/ldap.xml:1.12 phpdoc/fr/functions/ldap.xml:1.13 --- phpdoc/fr/functions/ldap.xml:1.12 Wed Dec 12 15:49:23 2001 +++ phpdoc/fr/functions/ldap.xml Tue Jan 29 18:18:17 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <reference id="ref.ldap"> <title>LDAP</title> <titleabbrev>LDAP</titleabbrev> @@ -518,7 +518,7 @@ <title>Enumérer tous les messages d'erreur LDAP</title> <programlisting role="php"> <?php - for($i=0; $i<100; $i++) { + for($i=0; $i<100; $i++) { printf("Error $i: %s<br>\n", ldap_str2err($i)); } ?> @@ -805,7 +805,7 @@ $entry = ldap_first_entry($ds, $sr); $attrs = ldap_get_attributes($ds, $entry); echo $attrs["count"]." Attributs dans cette entrée:<p>"; - for ($i=0; $i<$attrs["compte"]; $i++) + for ($i=0; $i<$attrs["compte"]; $i++) echo $attrs[$i]."<br>"; ?> </programlisting> Index: phpdoc/fr/functions/mbstring.xml diff -u phpdoc/fr/functions/mbstring.xml:1.6 phpdoc/fr/functions/mbstring.xml:1.7 --- phpdoc/fr/functions/mbstring.xml:1.6 Sun Jan 6 19:09:54 2002 +++ phpdoc/fr/functions/mbstring.xml Tue Jan 29 18:18:17 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <reference id="ref.mbstring"> <title>Chaînes de caractères multi-octets</title> <titleabbrev>Chaînes de caractères multi-octets</titleabbrev> @@ -658,7 +658,7 @@ <example> <title>Exemple avec <function>mb_internal_encoding</function></title> <programlisting role="php"> -<?;php +<?php /* Utilise l'encodage interne UTF-8 */ mb_internal_encoding("UTF-8"); /* Affiche l'encodage interne courant */ @@ -1286,7 +1286,7 @@ <example> <title>Exemple avec <function>mb_strimwidth</function></title> <programlisting role="php"> -<?;php +<?php $str = mb_strimwidth($str, 0, 40, "..>"); ?> </programlisting> Index: phpdoc/fr/functions/ming.xml diff -u phpdoc/fr/functions/ming.xml:1.9 phpdoc/fr/functions/ming.xml:1.10 --- phpdoc/fr/functions/ming.xml:1.9 Wed Dec 12 15:49:28 2001 +++ phpdoc/fr/functions/ming.xml Tue Jan 29 18:18:17 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <reference id="ref.ming"> <title>Ming pour Flash</title> <titleabbrev>Ming (Flash)</titleabbrev> @@ -719,7 +719,7 @@ $i1 = text(0xff, 0x33, 0x33, 0xff, 900, 1200, 800, 0.03, $thetext); $i2 = text(0x00, 0x33, 0xff, 0x7f, -560, 1200, 800, 0.04, $thetext); $i3 = text(0xff, 0xff, 0xff, 0x9f, 180, 1200, 800, 0.001, $thetext); - for($i=1; $i<=100; ++$i) + for($i=1; $i<=100; ++$i) { $i1 = step($i1); $i2 = step($i2); @@ -1050,7 +1050,7 @@ $m->setDimension(320, 240); $i = $m->add($p); $i->moveTo(160, 120); - for($n=0; $n<=1.001; $n+=0.01) + for($n=0; $n<=1.001; $n+=0.01) { $i->setRatio($n); $m->nextFrame(); @@ -1137,7 +1137,7 @@ $m = new SWFMovie(); $m->setDimension($b->getWidth(), $b->getHeight()); $i = $m->add($s); - for($n=0; $n<=20; ++$n) + for($n=0; $n<=20; ++$n) { $i->multColor(1.0-$n/10, 1.0, 1.0); $i->addColor(0xff*$n/20, 0, 0); @@ -1394,7 +1394,7 @@ $m->setDimension($width, $height); $i = $m->add($p); $i->moveTo($width/2, $height/2); - for($n=0; $n<1.001; $n+=0.03) + for($n=0; $n<1.001; $n+=0.03) { $i->setRatio($n); $m->nextFrame(); @@ -1861,15 +1861,15 @@ $m->setDimension(640, 480); $m->setBackground(0xcc, 0xcc, 0xcc); // décide un fond à damier - for($y=0; $y<480; $y+=40) + for($y=0; $y<480; $y+=40) { - for($x=0; $x<640; $x+=80) + for($x=0; $x<640; $x+=80) { $i = $m->add($c); $i->moveTo($x, $y); } $y+=40; - for($x=40; $x<640; $x+=80) + for($x=40; $x<640; $x+=80) { $i = $m->add($c); $i->moveTo($x, $y); @@ -2125,7 +2125,7 @@ $m->setBackground(0xff, 0xff, 0xff); $i = $m->add($p); $i->moveTo(1500,1000); - for($r=0.0; $r<=1.0; $r+=0.1) + for($r=0.0; $r<=1.0; $r+=0.1) { $i->setRatio($r); $m->nextFrame(); Index: phpdoc/fr/functions/misc.xml diff -u phpdoc/fr/functions/misc.xml:1.13 phpdoc/fr/functions/misc.xml:1.14 --- phpdoc/fr/functions/misc.xml:1.13 Wed Dec 12 15:49:29 2001 +++ phpdoc/fr/functions/misc.xml Tue Jan 29 18:18:19 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <reference id="ref.misc"> <title>Fonctions diverses</title> <titleabbrev>Divers</titleabbrev> @@ -503,7 +503,7 @@ <HEAD> <TITLE>Affichage de Source</TITLE> </HEAD> -<BODY BGCOLOR="white"?> +<BODY BGCOLOR="white"?> <?php $script = getenv ("PATH_TRANSLATED"); if(!$script) { Index: phpdoc/fr/functions/mnogosearch.xml diff -u phpdoc/fr/functions/mnogosearch.xml:1.10 phpdoc/fr/functions/mnogosearch.xml:1.11 --- phpdoc/fr/functions/mnogosearch.xml:1.10 Wed Dec 12 15:49:32 2001 +++ phpdoc/fr/functions/mnogosearch.xml Tue Jan 29 18:18:19 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <reference id="ref.mnogo"> <title>mnoGoSearch</title> <titleabbrev>mnoGoSearch</titleabbrev> @@ -50,7 +50,7 @@ </simpara> <simpara> Plus de détails sur le site officiel de mnoGoSearch : <ulink - url="&url.mnogo">&url.mnogo;</ulink>. + url="&url.mnogo;">&url.mnogo;</ulink>. </simpara> </partintro> <refentry id="function.udm-add-search-limit"> Index: phpdoc/fr/functions/pcre.xml diff -u phpdoc/fr/functions/pcre.xml:1.28 phpdoc/fr/functions/pcre.xml:1.29 --- phpdoc/fr/functions/pcre.xml:1.28 Wed Dec 12 15:49:40 2001 +++ phpdoc/fr/functions/pcre.xml Tue Jan 29 18:18:19 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> +<!-- $Revision: 1.29 $ --> <reference id="ref.pcre"> <title>Expressions régulières compatibles Perl</title> <titleabbrev>PCRE</titleabbrev> @@ -452,7 +452,7 @@ // et les espaces. Il remplace aussi quelques entités HTML // courante en leur équivalent texte. $search = array ("'<script[?>]*?>.*?</script>'si", // Supprime le javascript - "'<[\/\!]*?[^<?>]*?>'si", // Supprime les balises HTML + "'<[\/\!]*?[^<?>]*?>'si", // Supprime les balises HTML "'([\r\n])[\s]+'", // Supprime les espaces "'&(quot|#34);'i", // Supprime les entites HTML "'&(amp|#38);'i", @@ -2515,7 +2515,7 @@ attendu, et s'aperçoit rapidement qu'il n'y a pas ce caractère). </para> <para> - Si le masque utilisé est <literal>((?>\D+)|&;lt;\d+>)*[!?]</literal> + Si le masque utilisé est <literal>((?>\D+)|<\d+>)*[!?]</literal> les séquences de chiffres ne peuvent pas être trouvées, et l'échec intervient rapidement. </para> Index: phpdoc/fr/functions/pdf.xml diff -u phpdoc/fr/functions/pdf.xml:1.18 phpdoc/fr/functions/pdf.xml:1.19 --- phpdoc/fr/functions/pdf.xml:1.18 Wed Dec 12 15:49:42 2001 +++ phpdoc/fr/functions/pdf.xml Tue Jan 29 18:18:19 2002 @@ -8,7 +8,7 @@ fichiers PDF, pour peu que vous ayez la bibliothèque PDF de Thomas Merz (disponible à : <ulink url="&url.pdf;">&url.pdf;</ulink> (site anglais)). Vous aurez - aussi besoin des librairies <ulink url="&url.jpeg">JPEG library</ulink>, + aussi besoin des librairies <ulink url="&url.jpeg;">JPEG library</ulink>, <ulink url="&url.tiff;">the TIFF library</ulink>, pour compiler cette librairie. Ces deux librairies posent pas mal de problèmes lors de la configuration. Suivez attentivement les messages d'erreur. Index: phpdoc/fr/functions/pgsql.xml diff -u phpdoc/fr/functions/pgsql.xml:1.15 phpdoc/fr/functions/pgsql.xml:1.16 --- phpdoc/fr/functions/pgsql.xml:1.15 Wed Dec 12 15:49:43 2001 +++ phpdoc/fr/functions/pgsql.xml Tue Jan 29 18:18:19 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> +<!-- $Revision: 1.16 $ --> <reference id="ref.pgsql"> <title>PostgreSQL</title> <titleabbrev>PostgreSQL</titleabbrev> @@ -159,7 +159,7 @@ <?php $result = pg_exec($conn, "INSERT INTO verlag VALUES ('Auteur')"); $cmdtuples = pg_cmdtuples($result); -echo $cmdtuples . " <- tuples modifiés."; +echo $cmdtuples . " <- tuples modifiés."; ?> </programlisting> </example> @@ -427,9 +427,9 @@ exit; } $arr = pg_fetch_array($result, 0); -echo $arr[0] . " <- array\n"; +echo $arr[0] . " <- array\n"; $arr = pg_fetch_array($result, 1); -echo $arr["author"] . " <- array\n"; +echo $arr["author"] . " <- array\n"; ?> </programlisting> </example> Index: phpdoc/fr/functions/sesam.xml diff -u phpdoc/fr/functions/sesam.xml:1.9 phpdoc/fr/functions/sesam.xml:1.10 --- phpdoc/fr/functions/sesam.xml:1.9 Sun Jan 6 19:09:55 2002 +++ phpdoc/fr/functions/sesam.xml Tue Jan 29 18:18:20 2002 @@ -814,7 +814,7 @@ <?php if (sesam_connect ("moncatalogue", "monschema", "toto")) { if (sesam_execimm("INSERT INTO matable VALUES (*, 'Petit Test', <0, 8, 15>)") - && sesam_execimm("INSERT INTO autretable VALUES (*, 'Autre Test', 1)")) + && sesam_execimm("INSERT INTO autretable VALUES (*, 'Autre Test', 1)")) sesam_commit(); else sesam_rollback(); @@ -1830,7 +1830,7 @@ } // Affiche la table print "<TABLE BORDER>\n"; -while (($row = sesam_fetch_array ($result)) && count($row) > 0) { +while (($row = sesam_fetch_array ($result)) && count($row) > 0) { print " <TR>\n"; print " <TD>".htmlspecialchars($row["firstname"])."</TD>\n"; print " <TD>".htmlspecialchars($row["lastname"])."</TD>\n"; Index: phpdoc/fr/functions/strings.xml diff -u phpdoc/fr/functions/strings.xml:1.48 phpdoc/fr/functions/strings.xml:1.49 --- phpdoc/fr/functions/strings.xml:1.48 Sun Jan 6 19:09:55 2002 +++ phpdoc/fr/functions/strings.xml Tue Jan 29 18:18:20 2002 @@ -645,8 +645,8 @@ </programlisting> </example> La variable <literal>$encoded</literal> va contenir désormais : "Hallo - &<sgmltag>amp</sgmltag>; &<sgmltag>lt</sgmltag>;Frau&<sgmltag>gt</sgmltag>; - &<sgmltag>amp</sgmltag>; Kr&<sgmltag>auml</sgmltag>;mer". + &<sgmltag>amp</sgmltag>; &<sgmltag>lt</sgmltag>;Frau&<sgmltag>gt</sgmltag>; + &<sgmltag>amp</sgmltag>; Kr&<sgmltag>auml</sgmltag>;mer". </para> <para> <function>array_flip</function> est alors très efficace pour inverser la @@ -1388,7 +1388,7 @@ <para> Le métaphone a été développée par Lawrence Philips <lphilips@verity.com>. Elle est décrite dans - ["Practical Algorithms for Programmers", Binstock & Rex, Addison Wesley, 1995]. + ["Practical Algorithms for Programmers", Binstock & Rex, Addison Wesley, 1995]. <note> <para> C<function>metaphone</function> a été ajoutée @@ -2730,7 +2730,7 @@ } // versions plus anciennes que 4.0b3: $pos = strpos("b", $machaine); - if (is_string($pos) && !$pos) { + if (is_string($pos) && !$pos) { // non trouvé } ?> @@ -2916,7 +2916,7 @@ } // versions plus anciennes que 4.0b3: $pos = strpos("b", $mystring); -if (is_string($pos) && !$pos) { +if (is_string($pos) && !$pos) { // non trouvé } ?> Index: phpdoc/fr/functions/var.xml diff -u phpdoc/fr/functions/var.xml:1.19 phpdoc/fr/functions/var.xml:1.20 --- phpdoc/fr/functions/var.xml:1.19 Sun Jan 6 19:09:55 2002 +++ phpdoc/fr/functions/var.xml Tue Jan 29 18:18:20 2002 @@ -211,7 +211,7 @@ n'est pas une ressource valide, une erreur est générée. <informalexample> <programlisting role="php"> -<?php +<?php $c = mysql_connect(); echo get_resource_type($c)."\n"; // affiche : mysql link Index: phpdoc/fr/functions/yaz.xml diff -u phpdoc/fr/functions/yaz.xml:1.19 phpdoc/fr/functions/yaz.xml:1.20 --- phpdoc/fr/functions/yaz.xml:1.19 Wed Dec 12 15:49:59 2001 +++ phpdoc/fr/functions/yaz.xml Tue Jan 29 18:18:20 2002 @@ -771,7 +771,7 @@ Transport ILL (Profile/1)" (Note du Traducteur : mailez moi de l'aide!). Reportez-vous <ulink url="&url.yaz.ill;">ici</ulink> ou aux - <ulink url="&url.yaz.specs">spécification</ulink>. + <ulink url="&url.yaz.specs;">spécification</ulink>. Le paramètre <parameter>args</parameter> doit être un tableau associatif, contenant les informations "Item Order" à envoyer. L'index du tableau est le nom ASN.1 correspondant au tag path. Par exemple, le numéro ISBN sous Index: phpdoc/fr/language/variables.xml diff -u phpdoc/fr/language/variables.xml:1.30 phpdoc/fr/language/variables.xml:1.31 --- phpdoc/fr/language/variables.xml:1.30 Wed Dec 12 15:50:10 2001 +++ phpdoc/fr/language/variables.xml Tue Jan 29 18:18:20 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.30 $ --> +<!-- $Revision: 1.31 $ --> <chapter id="language.variables"> <title>Les variables</title> <sect1 id="language.variables.basics"> @@ -61,7 +61,7 @@ </para> <para> Pour assigner par référence, ajoutez simplement - un & (ET commercial) au début de la variable qui + un & (ET commercial) au début de la variable qui est assignée (la variable source). Dans l'exemple suivant, "<literal>Mon nom est Pierre</literal>" s'affichera deux fois :