cvs: phpdoc-fr /appendices reserved.constants.core.xml /reference/apache/functions apache-note.xml apache-reset-timeout.xml
apache-response-headers.xml getallheaders.xml virtual.xml

From: Date: Mon, 25 Feb 2008 08:42:02 +0000
Subject: cvs: phpdoc-fr /appendices reserved.constants.core.xml /reference/apache/functions apache-note.xml apache-reset-timeout.xml
apache-response-headers.xml getallheaders.xml virtual.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-5528@lists.php.net to get a copy of this message
yannick Mon Feb 25 08:42:02 2008 UTC Modified files: /phpdoc-fr/appendices reserved.constants.core.xml /phpdoc-fr/reference/apache/functions apache-note.xml apache-reset-timeout.xml apache-response-headers.xml getallheaders.xml virtual.xml Log: sync with EN

http://cvs.php.net/viewvc.cgi/phpdoc-fr/appendices/reserved.constants.core.xml?r1=1.25&r2=1.26&diff_format=u Index: phpdoc-fr/appendices/reserved.constants.core.xml diff -u phpdoc-fr/appendices/reserved.constants.core.xml:1.25 phpdoc-fr/appendices/reserved.constants.core.xml:1.26 --- phpdoc-fr/appendices/reserved.constants.core.xml:1.25 Fri Jul 20 20:50:48 2007 +++ phpdoc-fr/appendices/reserved.constants.core.xml Mon Feb 25 08:42:01 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.25 $ --> -<!-- EN-Revision: 1.20 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.26 $ --> +<!-- EN-Revision: 1.21 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect2 xml:id="reserved.constants.core" xmlns="http://docbook.org/ns/docbook"> @@ -9,17 +9,95 @@ Ces constantes sont définies par le coeur de &php;. Cela inclut notamment &php;, le moteur Zend et les modules SAPI. </simpara> - <variablelist> - <varlistentry> - <term> - <constant>PHP_VERSION</constant> - (&string;) - </term> - <listitem> - <simpara> - </simpara> - </listitem> - </varlistentry> +<variablelist> + <varlistentry> + <term> + <constant>PHP_VERSION</constant> + (&string;) + </term> + <listitem> + <simpara> + + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_MAJOR_VERSION</constant> + (&integer;) + </term> + <listitem> + <simpara> + Disponible depuis &php; 5.3.0. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_MINOR_VERSION</constant> + (&integer;) + </term> + <listitem> + <simpara> + Disponible depuis &php; 5.3.0. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_RELEASE_VERSION</constant> + (&integer;) + </term> + <listitem> + <simpara> + Disponible depuis &php; 5.3.0. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_VERSION_ID</constant> + (&integer;) + </term> + <listitem> + <simpara> + Disponible depuis &php; 5.3.0. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_EXTRA_VERSION</constant> + (&string;) + </term> + <listitem> + <simpara> + Disponible depuis &php; 5.3.0. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_ZTS</constant> + (&integer;) + </term> + <listitem> + <simpara> + Disponible depuis &php; 5.3.0. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PHP_DEBUG</constant> + (&integer;) + </term> + <listitem> + <simpara> + Disponible depuis &php; 5.3.0. + </simpara> + </listitem> + </varlistentry> <varlistentry> <term> <constant>PHP_OS</constant> @@ -55,7 +133,7 @@ <varlistentry> <term> <constant>PHP_INT_MAX</constant> - (<type>integer</type>) + (&integer;) </term> <listitem> <simpara> @@ -66,7 +144,7 @@ <varlistentry> <term> <constant>PHP_INT_SIZE</constant> - (<type>integer</type>) + (&integer;) </term> <listitem> <simpara> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/apache-note.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/apache/functions/apache-note.xml diff -u phpdoc-fr/reference/apache/functions/apache-note.xml:1.14 phpdoc-fr/reference/apache/functions/apache-note.xml:1.15 --- phpdoc-fr/reference/apache/functions/apache-note.xml:1.14 Sat Jul 21 06:15:37 2007 +++ phpdoc-fr/reference/apache/functions/apache-note.xml Mon Feb 25 08:42:01 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.apache-note" xmlns="http://docbook.org/ns/docbook"> @@ -17,10 +17,13 @@ <methodparam choice="opt"><type>string</type><parameter>note_value</parameter></methodparam> </methodsynopsis> <para> - <function>apache_note</function> est une fonction - spécifique au serveur Apache. Cette fonction affecte ou renvoie - la valeur de la variable contenue dans la table <literal>notes</literal> - d'Apache. + Cette fonction est une abstraction des commandes <literal>table_get</literal> et + <literal>table_set</literal> d'Apache. Elle édite la table des notes qui existe lors d'une + demande. Le but de cette table est de permettre aux modules Apache de communiquer. + </para> + <para> + L'utilité de la fonction <function>apache_note</function> est de passer des informations + d'un module vers un autre, durant la même demande. </para> </refsect1> @@ -60,6 +63,70 @@ Si la note ne peut être récupérée, &false; est retourné. </para> </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Passage d'informations entre &php; et Perl</title> + <programlisting role="php"> +<![CDATA[ +<?php + +apache_note('name', 'Fredrik Ekengren'); + +// Appel du script Perl +virtual("/perl/some_script.pl"); + +$result = apache_note("resultdata"); +?> +]]> + </programlisting> + <programlisting role="perl"> +<![CDATA[ +# Récupération de l'objet de demande Apache +my $r = Apache->request()->main(); + +# Récupération des données passées +my $name = $r->notes('name'); + +# Des traitements + +# Envoi du résultat vers PHP +$r->notes('resultdata', $result); +]]> + </programlisting> + </example> + </para> + <para> + <example> + <title>Valeurs d'identification dans le fichier access.log</title> + <programlisting role="php"> +<![CDATA[ +<?php + +apache_note('sessionID', session_id()); + +?> +]]> + </programlisting> + <programlisting role="apache"> +<![CDATA[ +# "%{sessionID}n" peut être utilisé dans la directive LogFormat +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>virtual</function></member> + </simplelist> + </para> + </refsect1> </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/apache-reset-timeout.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-fr/reference/apache/functions/apache-reset-timeout.xml diff -u phpdoc-fr/reference/apache/functions/apache-reset-timeout.xml:1.7 phpdoc-fr/reference/apache/functions/apache-reset-timeout.xml:1.8 --- phpdoc-fr/reference/apache/functions/apache-reset-timeout.xml:1.7 Sat Jul 21 06:15:37 2007 +++ phpdoc-fr/reference/apache/functions/apache-reset-timeout.xml Mon Feb 25 08:42:01 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.apache-reset-timeout" xmlns="http://docbook.org/ns/docbook"> @@ -38,6 +38,16 @@ &reftitle.notes; &note.sm.disabled; </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>set_time_limit</function></member> + <member><function>ignore_user_abort</function></member> + </simplelist> + </para> + </refsect1> </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/apache-response-headers.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc-fr/reference/apache/functions/apache-response-headers.xml diff -u phpdoc-fr/reference/apache/functions/apache-response-headers.xml:1.19 phpdoc-fr/reference/apache/functions/apache-response-headers.xml:1.20 --- phpdoc-fr/reference/apache/functions/apache-response-headers.xml:1.19 Sat Jul 21 06:15:37 2007 +++ phpdoc-fr/reference/apache/functions/apache-response-headers.xml Mon Feb 25 08:42:01 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.apache-response-headers" xmlns="http://docbook.org/ns/docbook"> @@ -65,6 +65,7 @@ <simplelist> <member><function>apache_request_headers</function></member> <member><function>headers_sent</function></member> + <member><function>headers_list</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/getallheaders.xml?r1=1.18&r2=1.19&diff_format=u Index: phpdoc-fr/reference/apache/functions/getallheaders.xml diff -u phpdoc-fr/reference/apache/functions/getallheaders.xml:1.18 phpdoc-fr/reference/apache/functions/getallheaders.xml:1.19 --- phpdoc-fr/reference/apache/functions/getallheaders.xml:1.18 Sat Jul 21 06:15:37 2007 +++ phpdoc-fr/reference/apache/functions/getallheaders.xml Mon Feb 25 08:42:01 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.18 $ --> -<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.19 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.getallheaders" xmlns="http://docbook.org/ns/docbook"> @@ -61,6 +61,26 @@ </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>getallheadres</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +foreach (getallheaders() as $name => $value) { + echo "$name: $value\n"; +} + +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="notes"> &reftitle.notes; &note.apache.nsapi-module; http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/virtual.xml?r1=1.23&r2=1.24&diff_format=u Index: phpdoc-fr/reference/apache/functions/virtual.xml diff -u phpdoc-fr/reference/apache/functions/virtual.xml:1.23 phpdoc-fr/reference/apache/functions/virtual.xml:1.24 --- phpdoc-fr/reference/apache/functions/virtual.xml:1.23 Sat Jul 21 06:15:37 2007 +++ phpdoc-fr/reference/apache/functions/virtual.xml Mon Feb 25 08:42:01 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.23 $ --> -<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.24 $ --> +<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.virtual" xmlns="http://docbook.org/ns/docbook"> @@ -84,6 +84,13 @@ </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + Voir la fonction <function>apache_note</function> pour un exemple. + </para> + </refsect1> + <refsect1 role="notes"> &reftitle.notes; <warning> @@ -104,6 +111,15 @@ </note> &note.apache.nsapi-module; </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>apache_note</function></member> + </simplelist> + </para> + </refsect1> </refentry> <!-- Keep this comment at the end of the file
« previous php.doc.fr (#5528) next »