cvs: phpdoc-fr /appendices wrappers.xml /chapters intro.xml /features http-auth.xml /language/oop5 magic.xml visibility.xml

From: Date: Thu, 17 Aug 2006 16:21:45 +0000
Subject: cvs: phpdoc-fr /appendices wrappers.xml /chapters intro.xml /features http-auth.xml /language/oop5 magic.xml visibility.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-4987@lists.php.net to get a copy of this message
yannick Thu Aug 17 16:21:45 2006 UTC Modified files: /phpdoc-fr/appendices wrappers.xml /phpdoc-fr/chapters intro.xml /phpdoc-fr/features http-auth.xml /phpdoc-fr/language/oop5 magic.xml visibility.xml Log: sync with EN

http://cvs.php.net/viewvc.cgi/phpdoc-fr/appendices/wrappers.xml?r1=1.34&r2=1.35&diff_format=u Index: phpdoc-fr/appendices/wrappers.xml diff -u phpdoc-fr/appendices/wrappers.xml:1.34 phpdoc-fr/appendices/wrappers.xml:1.35 --- phpdoc-fr/appendices/wrappers.xml:1.34 Fri Aug 4 22:14:25 2006 +++ phpdoc-fr/appendices/wrappers.xml Thu Aug 17 16:21:44 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.34 $ --> -<!-- EN-Revision: 1.61 Maintainer: dams Status: ready --> +<!-- $Revision: 1.35 $ --> +<!-- EN-Revision: 1.62 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <appendix id="wrappers"> @@ -219,6 +219,35 @@ ]]> </programlisting> </example> + <example> + <title>Analyse une page et envoie des données avec la méthode POST</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$postdata = http_build_query( + array( + 'var1' => 'du contenu', + 'var2' => 'doh' + ) +); + +$opts = array('http' => + array( + 'method' => 'POST', + 'header' => 'Content-type: application/x-www-form-urlencoded', + 'content' => $postdata + ) +); + +$context = stream_context_create($opts); + +$result = file_get_contents('http://example.com/submit.php', false, $context); + +?> +]]> + </programlisting> + </example> <simpara> Le flux donne l'accès au corps (<emphasis>body</emphasis>) de la ressource. Les en-têtes sont stockés dans la variable http://cvs.php.net/viewvc.cgi/phpdoc-fr/chapters/intro.xml?r1=1.36&r2=1.37&diff_format=u Index: phpdoc-fr/chapters/intro.xml diff -u phpdoc-fr/chapters/intro.xml:1.36 phpdoc-fr/chapters/intro.xml:1.37 --- phpdoc-fr/chapters/intro.xml:1.36 Fri Jul 28 16:39:43 2006 +++ phpdoc-fr/chapters/intro.xml Thu Aug 17 16:21:45 2006 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.36 $ --> -<!-- EN-Revision: 1.41 Maintainer: dams Status: ready --> +<!-- $Revision: 1.37 $ --> +<!-- EN-Revision: 1.42 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> + <chapter id="introduction"> &reftitle.intro; @@ -193,7 +194,7 @@ <member>Unix dbm</member> </simplelist> </blockquote> - Il existe aussi des couches d'abstraction de base de données comme DBX + Il existe aussi une couche d'abstraction de base de données (nommée PDO) qui vous permettent de vous connecter de manière transparente à toute base de données supportée par cette extension. De plus, &php; supporte ODBC, ce qui vous permet de vous connecter à toute autre base de données @@ -220,14 +221,9 @@ ajoutant le support de SimpleXML et XMLReader. </para> <para> - En commerce électronique, vous trouverez des outils de paiement - intégrés comme Cybercash, CyberMut, VeriSign Payflow - Pro et MCVE, pour réaliser des paiements en ligne. - </para> - <para> Enfin, &php; dispose d'extensions très pratiques comme le moteur de recherche mnoGoSearch, la passerelle avec - IRC, des outils de compression (gzip, bz2) et de conversion + IRC, des outils de compression (gzip, bz2, zip) et de conversion calendaire, de traduction... </para> <para> @@ -255,4 +251,4 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/features/http-auth.xml?r1=1.36&r2=1.37&diff_format=u Index: phpdoc-fr/features/http-auth.xml diff -u phpdoc-fr/features/http-auth.xml:1.36 phpdoc-fr/features/http-auth.xml:1.37 --- phpdoc-fr/features/http-auth.xml:1.36 Mon Jul 31 16:14:38 2006 +++ phpdoc-fr/features/http-auth.xml Thu Aug 17 16:21:45 2006 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.36 $ --> -<!-- EN-Revision: 1.45 Maintainer: jsgoupil Status: ready --> +<!-- $Revision: 1.37 $ --> +<!-- EN-Revision: 1.47 Maintainer: jsgoupil Status: ready --> <!-- Reviewed: yes --> + <chapter id="features.http-auth"> <title>Identification HTTP avec &php;</title> @@ -210,10 +211,10 @@ } else { echo "<p>Bienvenue : {$_SERVER['PHP_AUTH_USER']}<br />"; echo "Ancien : {$_REQUEST['OldAuth']}"; - echo "<form action=\"{$_SERVER['PHP_SELF']}\" method=\"post\">\n"; - echo "<input type=\"hidden\" name=\"SeenBefore\" value=\"1\">\n"; - echo "<input type=\"hidden\" name=\"OldAuth\" value=\"{$_SERVER['PHP_AUTH_USER']}\">\n"; - echo "<input type=\"submit\" value=\"Identification\">\n"; + echo "<form action='{$_SERVER['PHP_SELF']}' METHOD='post'>\n"; + echo "<input type='hidden' name='SeenBefore' value='1' />\n"; + echo "<input type='hidden' name='OldAuth' value='{$_SERVER['PHP_AUTH_USER']}' />\n"; + echo "<input type='submit' value='Re Authenticate' />\n"; echo "</form></p>\n"; } ?> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/oop5/magic.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/language/oop5/magic.xml diff -u phpdoc-fr/language/oop5/magic.xml:1.10 phpdoc-fr/language/oop5/magic.xml:1.11 --- phpdoc-fr/language/oop5/magic.xml:1.10 Sun Nov 13 18:55:53 2005 +++ phpdoc-fr/language/oop5/magic.xml Thu Aug 17 16:21:45 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <sect1 id="language.oop5.magic"> <title>Méthodes magiques</title> @@ -140,33 +140,11 @@ </screen> </example> <para> - Il est important de noter que la méthode <literal>__toString</literal> - ne sera appelée que si elle est directement combinée avec - <function>echo</function> ou <function>print</function>. + Il est important de noter qu'avant &php; 5.2.0, la méthode + <literal>__toString</literal> n'était appelée que si elle était + directement combinée avec <function>echo</function> ou + <function>print</function>. </para> - <example> - <title>Cas où <literal>__toString</literal> est appelée</title> - <programlisting role="php"> -<![CDATA[ -<?php -// __toString appelée -echo $class; - -// __toString appelée (reste un paramètre normal pour echo) -echo 'text', $class; - -// __toString non appelée (opérateur de concaténation utilisé en premier) -echo 'text' . $class; - -// __toString non appelée (conversion en une chaîne de caractères en premier) -echo (string) $class; - -// __toString non appelée (conversion en une chaîne de caractères en premier) -echo "text $class"; -?> -]]> - </programlisting> - </example> </sect2> <sect2 id="language.oop5.magic.set-state"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/oop5/visibility.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/language/oop5/visibility.xml diff -u phpdoc-fr/language/oop5/visibility.xml:1.10 phpdoc-fr/language/oop5/visibility.xml:1.11 --- phpdoc-fr/language/oop5/visibility.xml:1.10 Mon Aug 29 22:43:19 2005 +++ phpdoc-fr/language/oop5/visibility.xml Thu Aug 17 16:21:45 2006 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> + <sect1 id="language.oop5.visibility"> <title>Visibilité</title> <para> @@ -72,22 +73,19 @@ echo $obj2->protected; // Erreur fatale $obj2->printHello(); // Affiche Public, Protected2 et non Private -?> +?> ]]> </programlisting> </example> </para> <note> - <simpara> La méthode de déclaration de variable en &php; 4 avec le mot - clé <emphasis>var</emphasis> n'est plus valide - pour les objets en &php; 5. Pour des raisons de compatibilité, - une variable déclarée ainsi aura automatiquement une visibilité - publique et une erreur de niveau <constant>E_STRICT</constant> sera - générée. + clé <emphasis>var</emphasis> est toujours supportée pour + des raisons de compatibilité (en tant que synonyme du mot clé public). + Depuis &php; 5.1.3, son utilisation génère une erreur de niveau + <constant>E_STRICT</constant>. </simpara> - </note> </sect2> <sect2 id="language.oop5.visiblity-methods"> @@ -160,7 +158,7 @@ </para> </sect2> </sect1> - + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -180,4 +178,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file
« previous php.doc.fr (#4987) next »