cvs: phpdoc-fr /reference/http/HttpMessage fromString.xml /reference/http/HttpRequest addCookies.xml /reference/http/functions/caching
http-cache-etag.xml http-cache-last-modified.xml /reference/http/functions/misc http-get-request-body.xml /reference/http/functions/outputhandlers
ob-deflatehandler.xml ob-etaghandler.xml ob-inflatehandler.xml /reference/http/functions/parsers http-parse-params.xml
/reference/http/functions/requests http-get.xml http-post-fields.xml /reference/http/functions/responses http-redirect.xml /reference/image/figures
imagearc.png imagechar.png imagecharup.png imagecolorallocatealpha.png imageconvolution_emboss.png imageconvolution_gaussian.png
imagecopyresampled.jpg imagecopyresampled_2.jpg imagecopyresized.jpg imagecreate.png imagecreatefromgif.gif imagecreatefromjpeg.jpg
imagecreatefrompng.gif imagecreatefromstring.png imagecreatetruecolor.png imageellipse.png imagefill.png imagefilledarc.png imagefilledellipse.png
imagefilledpoly! gon.png imagepolygon.png imagerotate.jpg imagesetpixel.png imagesetstyle.jpg imagestring.png

From: Date: Sat, 31 Mar 2007 10:06:52 +0000
Subject: cvs: phpdoc-fr /reference/http/HttpMessage fromString.xml /reference/http/HttpRequest addCookies.xml /reference/http/functions/caching
http-cache-etag.xml http-cache-last-modified.xml /reference/http/functions/misc http-get-request-body.xml /reference/http/functions/outputhandlers
ob-deflatehandler.xml ob-etaghandler.xml ob-inflatehandler.xml /reference/http/functions/parsers http-parse-params.xml
/reference/http/functions/requests http-get.xml http-post-fields.xml /reference/http/functions/responses http-redirect.xml /reference/image/figures
imagearc.png imagechar.png imagecharup.png imagecolorallocatealpha.png imageconvolution_emboss.png imageconvolution_gaussian.png
imagecopyresampled.jpg imagecopyresampled_2.jpg imagecopyresized.jpg imagecreate.png imagecreatefromgif.gif imagecreatefromjpeg.jpg
imagecreatefrompng.gif imagecreatefromstring.png imagecreatetruecolor.png imageellipse.png imagefill.png imagefilledarc.png imagefilledellipse.png
imagefilledpoly! gon.png imagepolygon.png imagerotate.jpg imagesetpixel.png imagesetstyle.jpg imagestring.png
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-5294@lists.php.net to get a copy of this message
yannick Sat Mar 31 10:06:52 2007 UTC Added files: /phpdoc-fr/reference/image/figures imagearc.png imagechar.png imagecharup.png imagecolorallocatealpha.png imageconvolution_emboss.png imageconvolution_gaussian.png imagecopyresampled_2.jpg imagecopyresampled.jpg imagecopyresized.jpg imagecreatefromgif.gif imagecreatefromjpeg.jpg imagecreatefrompng.gif imagecreatefromstring.png imagecreate.png imagecreatetruecolor.png imageellipse.png imagefilledarc.png imagefilledellipse.png imagefilledpolygon.png imagefill.png imagepolygon.png imagerotate.jpg imagesetpixel.png imagesetstyle.jpg imagestring.png Modified files: /phpdoc-fr/reference/http/functions/caching http-cache-etag.xml http-cache-last-modified.xml /phpdoc-fr/reference/http/functions/misc http-get-request-body.xml /phpdoc-fr/reference/http/functions/outputhandlers ob-deflatehandler.xml ob-etaghandler.xml ob-inflatehandler.xml /phpdoc-fr/reference/http/functions/parsers http-parse-params.xml /phpdoc-fr/reference/http/functions/requests http-get.xml http-post-fields.xml /phpdoc-fr/reference/http/functions/responses http-redirect.xml /phpdoc-fr/reference/http/HttpMessage fromString.xml /phpdoc-fr/reference/http/HttpRequest addCookies.xml Log: sync with EN

http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/functions/caching/http-cache-etag.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/functions/caching/http-cache-etag.xml diff -u phpdoc-fr/reference/http/functions/caching/http-cache-etag.xml:1.2 phpdoc-fr/reference/http/functions/caching/http-cache-etag.xml:1.3 --- phpdoc-fr/reference/http/functions/caching/http-cache-etag.xml:1.2 Sun Sep 10 16:23:44 2006 +++ phpdoc-fr/reference/http/functions/caching/http-cache-etag.xml Sat Mar 31 10:06:51 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.http-cache-etag"> @@ -48,8 +48,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Retourne &false; si une erreur survient, ou <emphasis>sort</emphasis> avec un en-tête - <literal>304 Not Modified</literal> si l'entité a été mise en cache. + &returns.http.false.orexits; avec un en-tête <literal>304 Not Modified</literal> si l'entité est mis en cache. + &see.http.configuration.force_exit; </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/functions/caching/http-cache-last-modified.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/functions/caching/http-cache-last-modified.xml diff -u phpdoc-fr/reference/http/functions/caching/http-cache-last-modified.xml:1.2 phpdoc-fr/reference/http/functions/caching/http-cache-last-modified.xml:1.3 --- phpdoc-fr/reference/http/functions/caching/http-cache-last-modified.xml:1.2 Sun Sep 10 16:23:44 2006 +++ phpdoc-fr/reference/http/functions/caching/http-cache-last-modified.xml Sat Mar 31 10:06:51 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.http-cache-last-modified"> @@ -53,8 +53,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Retourne &false; si une erreur survient ou <emphasis>sort</emphasis> avec un en-tête - <literal>304 Not Modified</literal> si l'entrée est mise en cache. + &returns.http.false.orexits; avec un en-tête <literal>304 Not Modified</literal> si l'entité est mis en cache. + &see.http.configuration.force_exit; </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/functions/misc/http-get-request-body.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/functions/misc/http-get-request-body.xml diff -u phpdoc-fr/reference/http/functions/misc/http-get-request-body.xml:1.2 phpdoc-fr/reference/http/functions/misc/http-get-request-body.xml:1.3 --- phpdoc-fr/reference/http/functions/misc/http-get-request-body.xml:1.2 Sun Sep 10 16:23:44 2006 +++ phpdoc-fr/reference/http/functions/misc/http-get-request-body.xml Sat Mar 31 10:06:51 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.http-get-request-body"> @@ -19,7 +19,7 @@ </para> <para> Cette fonction ne peut pas être utilisée après la fonction - <link linkend="function.http-get-request-body-stream"><function>http_get_request_body_stream</function></link> + <function>http_get_request_body_stream</function> si la méthode de la demande est autre chose que POST. </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/functions/outputhandlers/ob-deflatehandler.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/functions/outputhandlers/ob-deflatehandler.xml diff -u phpdoc-fr/reference/http/functions/outputhandlers/ob-deflatehandler.xml:1.2 phpdoc-fr/reference/http/functions/outputhandlers/ob-deflatehandler.xml:1.3 --- phpdoc-fr/reference/http/functions/outputhandlers/ob-deflatehandler.xml:1.2 Sun Sep 10 16:23:44 2006 +++ phpdoc-fr/reference/http/functions/outputhandlers/ob-deflatehandler.xml Sat Mar 31 10:06:51 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.ob-deflatehandler"> @@ -16,8 +16,7 @@ <methodparam><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <para> - À utiliser avec la fonction - <link linkend="function.ob-start"><function>ob_start</function></link>. + À utiliser avec la fonction <function>ob_start</function>. </para> <para> Le gestionnaire de sortie de compression ne peut être utilisée qu'une seule fois. http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/functions/outputhandlers/ob-etaghandler.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/functions/outputhandlers/ob-etaghandler.xml diff -u phpdoc-fr/reference/http/functions/outputhandlers/ob-etaghandler.xml:1.2 phpdoc-fr/reference/http/functions/outputhandlers/ob-etaghandler.xml:1.3 --- phpdoc-fr/reference/http/functions/outputhandlers/ob-etaghandler.xml:1.2 Sun Sep 10 16:23:44 2006 +++ phpdoc-fr/reference/http/functions/outputhandlers/ob-etaghandler.xml Sat Mar 31 10:06:51 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.ob-etaghandler"> @@ -16,16 +16,14 @@ <methodparam><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <para> - À utiliser avec la fonction - <link linkend="function.ob-start"><function>ob_start</function></link>. + À utiliser avec la fonction <function>ob_start</function>. </para> <para> Le gestionnaire de buffer de sortie génète un ETag avec l'algorythme de hashage spécifié par &link.http.configuration; <literal>http.etag.mode</literal>. </para> <para> - Ce gestionnaire de sortie est utilisé par la fonction - <link linkend="function.http-cache-etag"><function>http_cache_etag</function></link>. + Ce gestionnaire de sortie est utilisé par la fonction <function>http_cache_etag</function>. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/functions/outputhandlers/ob-inflatehandler.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/functions/outputhandlers/ob-inflatehandler.xml diff -u phpdoc-fr/reference/http/functions/outputhandlers/ob-inflatehandler.xml:1.2 phpdoc-fr/reference/http/functions/outputhandlers/ob-inflatehandler.xml:1.3 --- phpdoc-fr/reference/http/functions/outputhandlers/ob-inflatehandler.xml:1.2 Sun Sep 10 16:23:44 2006 +++ phpdoc-fr/reference/http/functions/outputhandlers/ob-inflatehandler.xml Sat Mar 31 10:06:51 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.ob-inflatehandler"> @@ -16,12 +16,10 @@ <methodparam><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <para> - À utiliser avec la fonction - <link linkend="function.ob-start"><function>ob_start</function></link>. + À utiliser avec la fonction <function>ob_start</function>. </para> <para> - Les mêmes restrictions sont appliquées que pour la fonction - <link linkend="function.ob-deflatehandler"><function>ob_deflatehandler</function></link>. + Les mêmes restrictions sont appliquées que pour la fonction <function>ob_deflatehandler</function>. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/functions/parsers/http-parse-params.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/functions/parsers/http-parse-params.xml diff -u phpdoc-fr/reference/http/functions/parsers/http-parse-params.xml:1.2 phpdoc-fr/reference/http/functions/parsers/http-parse-params.xml:1.3 --- phpdoc-fr/reference/http/functions/parsers/http-parse-params.xml:1.2 Sun Sep 10 16:23:44 2006 +++ phpdoc-fr/reference/http/functions/parsers/http-parse-params.xml Sat Mar 31 10:06:52 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.http-parse-params"> @@ -23,6 +23,7 @@ les valeurs possibles de l'argument <varname>flags</varname>. </para> </refsect1> + <refsect1 role="parameters"> &reftitle.parameters; <para> @@ -46,12 +47,47 @@ </variablelist> </para> </refsect1> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne la liste des paramètres. </para> </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>http_parse_params</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +var_dump(http_parse_params("text/html; charset=\"utf8\"")); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +object(stdClass)#1 (1) { + ["params"]=> + array(2) { + [0]=> + string(9) "text/html" + [1]=> + array(1) { + ["charset"]=> + string(4) "utf8" + } + } +} +]]> + </screen> + </example> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/functions/requests/http-get.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/functions/requests/http-get.xml diff -u phpdoc-fr/reference/http/functions/requests/http-get.xml:1.2 phpdoc-fr/reference/http/functions/requests/http-get.xml:1.3 --- phpdoc-fr/reference/http/functions/requests/http-get.xml:1.2 Sun Sep 10 16:23:44 2006 +++ phpdoc-fr/reference/http/functions/requests/http-get.xml Sat Mar 31 10:06:52 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.http-get"> @@ -12,276 +12,16 @@ &reftitle.description; <methodsynopsis> <type>string</type><methodname>http_get</methodname> - <methodparam choice="opt"><type>string</type><parameter>url</parameter></methodparam> + <methodparam><type>string</type><parameter>url</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter role="reference">info</parameter></methodparam> </methodsynopsis> <para> Effectue une requête HTTP GET sur l'URL fournie. </para> - <para> - Le second paramètre, si défini, doit être un tableau associatif - contenant les options suivantes : - </para> - <para id="http.request.options"> - <table> - <title>Options d'une requête HTTP</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Nom</entry> - <entry>Type</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>redirect</entry> - <entry>entier</entry> - <entry>si l'on doit suivre les redirections et combien de redirections l'on doit suivre</entry> - </row> - <row> - <entry>unrestrictedauth</entry> - <entry>booléen</entry> - <entry>si l'on doit continuer à envoyer les credentials sur les redirections vers un hôte différent</entry> - </row> - <row> - <entry>proxyhost</entry> - <entry>chaîne de caractères</entry> - <entry>hôte du proxy sous le format &quot;host[:port]&quot;</entry> - </row> - <row> - <entry>proxyport</entry> - <entry>entier</entry> - <entry>utilisation d'un autre port pour le proxy à spécifier dans l'hôte du proxy</entry> - </row> - <row> - <entry>proxytype</entry> - <entry>entier</entry> - <entry><constant>HTTP_PROXY_HTTP</constant>, <constant>HTTP_PROXY_SOCKS4</constant> ou - <constant>HTTP_PROXY_SOCKS5</constant></entry> - </row> - <row> - <entry>proxyauth</entry> - <entry>chaîne de caractères</entry> - <entry>credentials du proxy sous le format &quot;user:pass&quot;</entry> - </row> - <row> - <entry>proxyauthtype</entry> - <entry>entier</entry> - <entry><constant>HTTP_AUTH_BASIC</constant> et/ou <constant>HTTP_AUTH_NTLM</constant></entry> - </row> - <row> - <entry>httpauth</entry> - <entry>chaîne de caractères</entry> - <entry>credentials http sous le format &quot;user:pass&quot;</entry> - </row> - <row> - <entry>httpauthtype</entry> - <entry>entier</entry> - <entry><constant>HTTP_AUTH_BASIC</constant>, <constant>HTTP_AUTH_DIGEST</constant> et/ou - <constant>HTTP_AUTH_NTLM</constant></entry> - </row> - <row> - <entry>compress</entry> - <entry>booléen</entry> - <entry>si l'on autorise du contenu encodé gzip/deflate</entry> - </row> - <row> - <entry>port</entry> - <entry>entier</entry> - <entry>utilisation d'un autre port tel que spécifié dans l'URL</entry> - </row> - <row> - <entry>referer</entry> - <entry>chaîne de caractères</entry> - <entry>le référant à envoyer</entry> - </row> - <row> - <entry>useragent</entry> - <entry>chaîne de caractères</entry> - <entry>l'agent utilisation à envoyer (par défaut, PECL::HTTP/version (PHP/version))</entry> - </row> - <row> - <entry>headers</entry> - <entry>tableau</entry> - <entry>liste des en-têtes personnalisées sous la forme d'un tableau associatif comme - array(&quot;en-tête&quot; => &quot;valeur&quot;)</entry> - </row> - <row> - <entry>cookies</entry> - <entry>tableau</entry> - <entry>liste de cookies sous la forme d'un tableau associatif comme - array(&quot;cookie&quot; => &quot;valeur&quot;)</entry> - </row> - <row> - <entry>encodecookies</entry> - <entry>booléen</entry> - <entry>si l'on doit encoder URL les cookies (par défaut : true)</entry> - </row> - <row> - <entry>cookiestore</entry> - <entry>chaîne de caractères</entry> - <entry>chemin vers le fichier où les cookies seront stockés</entry> - </row> - <row> - <entry>cookiesession</entry> - <entry>booléen</entry> - <entry>ne charge pas les cookies de session depuis le magasin de cookies si ce paramètre vaut &true;</entry> - </row> - <row> - <entry>resume</entry> - <entry>entier</entry> - <entry>position de l'octet d'où l'on doit commencer le téléchargement ; si le serveur supporte les intervalles</entry> - </row> - <row> - <entry>range</entry> - <entry>tableau</entry> - <entry>tableau de tableaux, chaqu'un contenant deux entiers, spécifiant l'intervalle - de téléchargement si le serveur supporte les intervalles ; seulement reconnu si l'option resume est vide</entry> - </row> - <row> - <entry>maxfilesize</entry> - <entry>entier</entry> - <entry>taille maximale du fichier que l'on peut télécharger</entry> - </row> - <row> - <entry>lastmodified</entry> - <entry>entier</entry> - <entry>timestamp pour l'en-tête <literal>If-(Un)Modified-Since</literal></entry> - </row> - <row> - <entry>etag</entry> - <entry>chaîne de caractères</entry> - <entry>ETag pour l'en-tête <literal>If-(None-)Match</literal></entry> - </row> - <row> - <entry>timeout</entry> - <entry>entier</entry> - <entry>durée d'exécution de la requête</entry> - </row> - <row> - <entry>connecttimeout</entry> - <entry>entier</entry> - <entry>durée de vie de la connexion</entry> - </row> - <row> - <entry>onprogress</entry> - <entry>mixed</entry> - <entry>callback de la progression</entry> - </row> - <row> - <entry>interface</entry> - <entry>chaîne de caractères</entry> - <entry>interface du réseau sortant (ifname, ip ou hostname)</entry> - </row> - <row> - <entry>portrange</entry> - <entry>tableau</entry> - <entry>2 entiers spécifiant l'intervalle des ports de sortie à essayer</entry> - </row> - <row> - <entry>ssl</entry> - <entry>tableau</entry> - <entry> - <para> - <table id="http.request.options.ssl"> - <title>avec les options suivantes :</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Nom</entry> - <entry>Type</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>cert</entry> - <entry>chaîne de caractères</entry> - <entry>chemin à certifier</entry> - </row> - <row> - <entry>certtype</entry> - <entry>chaîne de caractères</entry> - <entry>type de certificat</entry> - </row> - <row> - <entry>certpasswd</entry> - <entry>chaîne de caractères</entry> - <entry>mot de passe du certificat</entry> - </row> - <row> - <entry>key</entry> - <entry>chaîne de caractères</entry> - <entry>chemin de la clé</entry> - </row> - <row> - <entry>keytype</entry> - <entry>chaîne de caractères</entry> - <entry>type de la clé</entry> - </row> - <row> - <entry>keypasswd</entry> - <entry>chaîne de caractères</entry> - <entry>mot de passe pour la clé</entry> - </row> - <row> - <entry>engine</entry> - <entry>chaîne de caractères</entry> - <entry>moteur ssl à utiliser</entry> - </row> - <row> - <entry>version</entry> - <entry>entier</entry> - <entry>version ssl à utiliser</entry> - </row> - <row> - <entry>verifypeer</entry> - <entry>booléen</entry> - <entry>si l'on doit vérifier la paire</entry> - </row> - <row> - <entry>verifyhost</entry> - <entry>booléen</entry> - <entry>si l'on doit vérifier l'hôte</entry> - </row> - <row> - <entry>cipher_list</entry> - <entry>chaîne de caractères</entry> - <entry>liste des ciphers autorisés</entry> - </row> - <row> - <entry>cainfo</entry> - <entry>chaîne de caractères</entry> - <entry></entry> - </row> - <row> - <entry>capath</entry> - <entry>chaîne de caractères</entry> - <entry></entry> - </row> - <row> - <entry>random_file</entry> - <entry>chaîne de caractères</entry> - <entry></entry> - </row> - <row> - <entry>egdsocket</entry> - <entry>chaîne de caractères</entry> - <entry></entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> + &see.http.request.options; </refsect1> + <refsect1 role="parameters"> &reftitle.parameters; <para> @@ -298,7 +38,7 @@ <term><parameter>options</parameter></term> <listitem> <para> - <link linkend="http.request.options">options de la requête HTTP</link> + &link.http.request.options; </para> </listitem> </varlistentry> @@ -308,8 +48,33 @@ <para> Doit contenir les informations requête/réponse </para> - <para> - <screen> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &returns.http.response; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>http_get</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$response = http_get("http://www.example.com/", array("timeout"=>1), $info); +print_r($info); +?> +]]> + </programlisting> + &example.outputs; + <screen> <![CDATA[ array ( 'effective_url' => 'http://www.example.com/', @@ -352,19 +117,11 @@ 'error' => '', ) ]]> - </screen> - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - &returns.http.response; + </screen> + </example> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/functions/requests/http-post-fields.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/functions/requests/http-post-fields.xml diff -u phpdoc-fr/reference/http/functions/requests/http-post-fields.xml:1.2 phpdoc-fr/reference/http/functions/requests/http-post-fields.xml:1.3 --- phpdoc-fr/reference/http/functions/requests/http-post-fields.xml:1.2 Sun Sep 10 16:23:44 2006 +++ phpdoc-fr/reference/http/functions/requests/http-post-fields.xml Sat Mar 31 10:06:52 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.http-post-fields"> @@ -23,6 +23,7 @@ </para> &see.http.request.options; </refsect1> + <refsect1 role="parameters"> &reftitle.parameters; <para> @@ -70,12 +71,42 @@ </variablelist> </para> </refsect1> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &returns.http.response; </para> </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>http_post_fields</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$fields = array( + 'name' => 'mike', + 'pass' => 'se_ret' +); +$files = array( + array( + 'name' => 'uimg', + 'type' => 'image/jpeg', + 'file' => './profile.jpg', + ) +); + +$response = http_post_fields("http://www.example.com/", $fields, $files); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/functions/responses/http-redirect.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/functions/responses/http-redirect.xml diff -u phpdoc-fr/reference/http/functions/responses/http-redirect.xml:1.2 phpdoc-fr/reference/http/functions/responses/http-redirect.xml:1.3 --- phpdoc-fr/reference/http/functions/responses/http-redirect.xml:1.2 Sun Sep 10 16:23:44 2006 +++ phpdoc-fr/reference/http/functions/responses/http-redirect.xml Sat Mar 31 10:06:52 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.http-redirect"> @@ -92,7 +92,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Retourne &false; en cas d'échec ou <emphasis>sort</emphasis> en cas de succès. + &returns.http.false.orexits; avec un code statut spécifique. + &see.http.configuration.force_exit; </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/HttpMessage/fromString.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/HttpMessage/fromString.xml diff -u phpdoc-fr/reference/http/HttpMessage/fromString.xml:1.2 phpdoc-fr/reference/http/HttpMessage/fromString.xml:1.3 --- phpdoc-fr/reference/http/HttpMessage/fromString.xml:1.2 Sun Sep 10 16:23:45 2006 +++ phpdoc-fr/reference/http/HttpMessage/fromString.xml Sat Mar 31 10:06:52 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.HttpMessage-fromString"> @@ -18,8 +18,9 @@ </methodsynopsis> <para> - Crée un objet HttpMessage depuis une chaîne de caractères. C'est une sorte de constructeur statique. + Crée un objet HttpMessage depuis une chaîne de caractères. </para> + &info.function.alias.deprecated; </refsect1> <refsect1 role="parameters"> @@ -58,6 +59,16 @@ Lance une exception HttpMalformedHeadersException. </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function><classname>HttpMessage</classname>::factory</function>.</member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/http/HttpRequest/addCookies.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/http/HttpRequest/addCookies.xml diff -u phpdoc-fr/reference/http/HttpRequest/addCookies.xml:1.2 phpdoc-fr/reference/http/HttpRequest/addCookies.xml:1.3 --- phpdoc-fr/reference/http/HttpRequest/addCookies.xml:1.2 Sun Sep 10 16:23:45 2006 +++ phpdoc-fr/reference/http/HttpRequest/addCookies.xml Sat Mar 31 10:06:52 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.HttpRequest-addCookies"> @@ -17,8 +17,10 @@ </methodsynopsis> <para> - Add cookies. + Ajoute un cookie personnalisé. </para> + &note.http.request.encodecookies; + &note.http.request.affects.any; </refsect1> <refsect1 role="parameters"> @@ -36,12 +38,44 @@ </variablelist> </para> </refsect1> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>HttpRequest::addCookies</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$r = new HttpRequest; +$r->addCookies( + array( + "nom_du_cookie" => "valeur du cookie", + ) +); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>HttpRequest::setCookies</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file
« previous php.doc.fr (#5294) next »