cvs: phpdoc-fr /reference/mysql/functions mysql-client-encoding.xml mysql-close.xml mysql-create-db.xml mysql-db-query.xml mysql-info.xml
mysql-insert-id.xml mysql-list-fields.xml mysql-list-processes.xml mysql-list-tables.xml mysql-ping.xml mysql-query.xml mysql-real-escape-string.xml
mysql-stat.xml mysql-thread-id.xml mysql-unbuffered-query.xml
| From: | Damien Seguy | Date: | Mon, 28 Apr 2003 15:44:46 +0000 |
| Subject: | cvs: phpdoc-fr /reference/mysql/functions mysql-client-encoding.xml mysql-close.xml mysql-create-db.xml mysql-db-query.xml mysql-info.xml mysql-insert-id.xml mysql-list-fields.xml mysql-list-processes.xml mysql-list-tables.xml mysql-ping.xml mysql-query.xml mysql-real-escape-string.xml mysql-stat.xml mysql-thread-id.xml mysql-unbuffered-query.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-307@lists.php.net to get a copy of this message | ||
dams Mon Apr 28 11:44:46 2003 EDT
Added files:
/phpdoc-fr/reference/mysql/functions mysql-client-encoding.xml
mysql-info.xml
mysql-list-processes.xml
mysql-ping.xml
mysql-real-escape-string.xml
mysql-stat.xml
mysql-thread-id.xml
Modified files:
/phpdoc-fr/reference/mysql/functions mysql-close.xml
mysql-create-db.xml
mysql-db-query.xml
mysql-insert-id.xml
mysql-list-fields.xml
mysql-list-tables.xml
mysql-query.xml
mysql-unbuffered-query.xml
Log:
Adding last missing files
Index: phpdoc-fr/reference/mysql/functions/mysql-close.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-close.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-close.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-close.xml:1.2 Fri Feb 7 13:10:11 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-close.xml Mon Apr 28 11:44:46 2003 @@ -10,9 +10,7 @@ <title>Description</title> <methodsynopsis> <type>bool</type><methodname>mysql_close</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_close</function> ferme la connexion au serveur MySQL Index: phpdoc-fr/reference/mysql/functions/mysql-create-db.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-create-db.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-create-db.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-create-db.xml:1.2 Fri Feb 7 13:10:11 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-create-db.xml Mon Apr 28 11:44:46 2003 @@ -11,9 +11,7 @@ <methodsynopsis> <type>bool</type><methodname>mysql_create_db</methodname> <methodparam><type>string</type><parameter>database name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_create_db</function> tente de créer une nouvelle Index: phpdoc-fr/reference/mysql/functions/mysql-db-query.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-db-query.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-db-query.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-db-query.xml:1.2 Fri Feb 7 13:10:11 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-db-query.xml Mon Apr 28 11:44:46 2003 @@ -12,9 +12,7 @@ <type>resource</type><methodname>mysql_db_query</methodname> <methodparam><type>string</type><parameter>database</parameter></methodparam> <methodparam><type>string</type><parameter>query</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_db_query</function> retourne un identifiant de Index: phpdoc-fr/reference/mysql/functions/mysql-insert-id.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-insert-id.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-insert-id.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-insert-id.xml:1.2 Fri Mar 28 17:46:10 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-insert-id.xml Mon Apr 28 11:44:46 2003 @@ -13,9 +13,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>mysql_insert_id</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_insert_id</function> retourne le dernier identifiant Index: phpdoc-fr/reference/mysql/functions/mysql-list-fields.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-list-fields.xml:1.3 phpdoc-fr/reference/mysql/functions/mysql-list-fields.xml:1.4 --- phpdoc-fr/reference/mysql/functions/mysql-list-fields.xml:1.3 Fri Mar 28 17:46:10 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-list-fields.xml Mon Apr 28 11:44:46 2003 @@ -12,9 +12,7 @@ <type>resource</type><methodname>mysql_list_fields</methodname> <methodparam><type>string</type><parameter>database_name</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_list_fields</function> recherche les informations Index: phpdoc-fr/reference/mysql/functions/mysql-list-tables.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-list-tables.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-list-tables.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-list-tables.xml:1.2 Fri Feb 7 13:10:11 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-list-tables.xml Mon Apr 28 11:44:46 2003 @@ -11,9 +11,7 @@ <methodsynopsis> <type>resource</type><methodname>mysql_list_tables</methodname> <methodparam><type>string</type><parameter>database</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_list_tables</function> prend le nom d'une base de Index: phpdoc-fr/reference/mysql/functions/mysql-query.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-query.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-query.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-query.xml:1.2 Fri Feb 7 13:10:11 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-query.xml Mon Apr 28 11:44:46 2003 @@ -12,7 +12,6 @@ <type>resource</type><methodname>mysql_query</methodname> <methodparam><type>string</type><parameter>query</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>result_mode</parameter></methodparam> </methodsynopsis> <para> <function>mysql_query</function> envoie une requête SQL à @@ -37,8 +36,9 @@ </para> </note> <para> - Seules les requêtes SQL SELECT,SHOW,EXPLAIN et DESCRIBE, - utilisée avec <function>mysql_query</function> + Seules les requêtes SQL <literal>SELECT</literal>, + <literal>SHOW</literal>, <literal>EXPLAIN</literal> et <literal>DESCRIBE</literal>, + utilisées avec <function>mysql_query</function> retourne une ressource de résultat MySQL, ou bien &false; si la requête n'a pu être exécuté correctement. Pour les autres types de requêtes SQL, <function>mysql_query</function> retourne &true; Index: phpdoc-fr/reference/mysql/functions/mysql-unbuffered-query.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-unbuffered-query.xml:1.1 phpdoc-fr/reference/mysql/functions/mysql-unbuffered-query.xml:1.2 --- phpdoc-fr/reference/mysql/functions/mysql-unbuffered-query.xml:1.1 Sun Apr 14 20:34:19 2002 +++ phpdoc-fr/reference/mysql/functions/mysql-unbuffered-query.xml Mon Apr 28 11:44:46 2003 @@ -14,7 +14,6 @@ <type>resource</type><methodname>mysql_unbuffered_query</methodname> <methodparam><type>string</type><parameter>query</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>result_mode</parameter></methodparam> </methodsynopsis> <para> <function>mysql_unbuffered_query</function> envoie la requête Index: phpdoc-fr/reference/mysql/functions/mysql-client-encoding.xml +++ phpdoc-fr/reference/mysql/functions/mysql-client-encoding.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-character-set-name"> <refnamediv> <refname>mysql_client_encoding</refname> <refpurpose>Retourne le nom du jeu de caractères utilisé par le client mysql</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>mysql_client_encoding</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_client_encoding</function> retourne le nom du jeu de caractères utilisé par le client mysql, pour la connexion courante (si omise), ou pour la connexion <parameter>link_identifier</parameter>. </para> <example> <title>Exemple avec <function>mysql_client_encoding</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'utilisateur_mysql', 'mot_de_passe'); $charset = mysql_client_encoding($link); printf ("Le jeu de caractères actuel est %s.\n", $charset); ?> ]]> </programlisting> <para> L'exemple ci-dessus va afficher ceci : <screen> <![CDATA[ Le jeu de caractères actuel est latin1. ]]> </screen> </para> </example> <para> Voir aussi <function>mysql_real_escape_string</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-info.xml +++ phpdoc-fr/reference/mysql/functions/mysql-info.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-info"> <refnamediv> <refname>mysql_info</refname> <refpurpose> Lit des informations a propos de la dernière requête </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>mysql_info</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_info</function> retourne des informations détaillées sur la dernière requête exécutée sur la dernière connexion ouverte (si omise), ou sur la connexion <parameter>link_identifier</parameter>. detailed information about </para> <para> <function>mysql_info</function> retourne une chaîne avec tous les détails listés ci-dessous. Pour toutes les autres commandes, elle retourne &false;. Le format de la chaîne dépend de la commande. <example> <title>Commande utilisables avec mysql_info()</title> <programlisting role="mysql"> <![CDATA[ INSERT INTO ... SELECT ... String format: Records: 23 Duplicates: 0 Warnings: 0 INSERT INTO ... VALUES (...),(...),(...)... String format: Records: 37 Duplicates: 0 Warnings: 0 LOAD DATA INFILE ... String format: Records: 42 Deleted: 0 Skipped: 0 Warnings: 0 ALTER TABLE String format: Records: 60 Duplicates: 0 Warnings: 0 UPDATE String format: Rows matched: 65 Changed: 65 Warnings: 0 ]]> </programlisting> </example> Les nombres ci-dessus ne sont la que pour illustrer. Leur valeur s'adaptera à la situation de la requête. </para> <note> <para> <function>mysql_info</function> retourne une valeur différente de &false; pour les commandes INSERT ... VALUES uniquement si plusieurs jeux de valeurs à insérer ont été spécifiées dans la commande. </para> </note> <para> Voir aussi <function>mysql_affected_rows</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-list-processes.xml +++ phpdoc-fr/reference/mysql/functions/mysql-list-processes.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.96 --> <refentry id="function.mysql-list-processes"> <refnamediv> <refname>mysql_list_processes</refname> <refpurpose>Liste les processus MySQL</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>resource</type><methodname>mysql_list_processes</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_list_processes</function> retourne une ressource de résultat qui liste les processus courants sur le serveur. </para> <para> <example> <title>Exemple avec <function>mysql_list_processes</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $result = mysql_list_processes($link); while ($row = mysql_fetch_row($result)){ printf("%s %s %s %s %s\n", $row["Id"], $row["Host"], $row["db"], $row["Command"], $row["Time"]); } mysql_free_result ($result); ?> ]]> </programlisting> <para> L'exemple ci-dessus va afficher : <screen> <![CDATA[ 1 localhost test Processlist 0 4 localhost mysql sleep 5 ]]> </screen> </para> </example> </para> <para> Voir aussi <function>mysql_thread_id</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-ping.xml +++ phpdoc-fr/reference/mysql/functions/mysql-ping.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-ping"> <refnamediv> <refname>mysql_ping</refname> <refpurpose>Pingue le serveur, et se reconnecte au besoin</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>mysql_ping</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_ping</function> vérifie sir la connexion au serveur fonctionne. Si elle est tombée, une reconnexion automatique est effectuée. Cette fonction est utile pour les scripts qui restent inactifs durant un long moment. Ils peuvent ainsi vérifier si le serveur a fermé la connexion, pour cause d'inactivité. <function>mysql_ping</function> retourne &true; si la connexion au serveur fonctionne, et &false; sinon. </para> <para> Voir aussi <function>mysql_thread_id</function> et <function>mysql_list_processes</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-real-escape-string.xml +++ phpdoc-fr/reference/mysql/functions/mysql-real-escape-string.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-real-escape-string"> <refnamediv> <refname>mysql_real_escape_string</refname> <refpurpose> Protège les caractères spéciaux d'une commande SQL. </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>mysql_real_escape_string</methodname> <methodparam><type>string</type><parameter>unescaped_string</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_real_escape_string</function> protège les caractères spéciaux de la chaîne <parameter>unescaped_string</parameter>, en prenant en compte le jeu de caractères courant. Le résultat peut être utilisé sans problème avec la fonction <function>mysql_query</function>. </para> <note> <simpara> <function>mysql_real_escape_string</function> ne remplace ni <literal>%</literal>, ni <literal>_</literal>. </simpara> </note> <example> <title>Exemple avec <function>mysql_real_escape_string</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $item = "C'est la belle vie, n'est ce pas?"; $escaped_item = mysql_real_escape_string($item); printf ("Chaîne résultat : : %s\n", $escaped_item); ?> ]]> </programlisting> <para> L'exemple ci-dessus va afficher ceci : <screen> <![CDATA[ Chaîne résultat : C\'est la belle vie, n\'est ce pas? ]]> </screen> </para> </example> <para> Voir aussi <function>mysql_escape_string</function> et <function>mysql_character_set_name</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-stat.xml +++ phpdoc-fr/reference/mysql/functions/mysql-stat.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 --> <refentry id="function.mysql-stat"> <refnamediv> <refname>mysql_stat</refname> <refpurpose>Retourne le statut courant du serveur</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>mysql_stat</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_stat</function> retourne le statut courant du serveur. </para> <note> <para> <function>mysql_stat</function> actuellement ne retourne que le temps de fonctionnement, les threads, les requêtes, les tables ouvertes, les tables flushées, et le nombre de requêtes par secondes. Pour une liste complète des statuts du serveur, utilisez la requête SHOW STATUS. </para> </note> <para> <example> <title>Exemple <function>mysql_stat</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', "mysql_user", "mysql_password"); $status = explode(' ',mysql_stat($link)); print_r($status); ?> ]]> </programlisting> <para> L'exemple ci-dessus va afficher : <screen> <![CDATA[ Array ( [0] => Uptime: 5380 [1] => Threads: 2 [2] => Questions: 1321299 [3] => Slow queries: 0 [4] => Opens: 26 [5] => Flush tables: 1 [6] => Open tables: 17 [7] => Queries per second avg: 245.595 ) ]]> </screen> </para> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-thread-id.xml +++ phpdoc-fr/reference/mysql/functions/mysql-thread-id.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-thread-id"> <refnamediv> <refname>mysql_thread_id</refname> <refpurpose>Retourne l'identifiant du thread courant</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>mysql_thread_id</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_thread_id</function> retourne l'identifiant du thread courant. Si la connexion est perdue et que vous vous reconnectez (avec <function>mysql_ping</function> par exemple), alors l'identifiant de thread va changer. Cela signifie que vous devez lire l'identifiant de thread, et le garder pour plus tard. Lisez le lorsque vous en avez besoin. </para> <example> <title>Exemple avec <function>mysql_thread_id</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $thread_id = mysql_thread_id($link); if ($thread_id){ printf ("L'identifiant du thread courant est %d\n", $thread_id); } ?> ]]> </programlisting> <para> L'exemple ci-dessus va afficher : <screen> <![CDATA[ L'identifiant du thread courant est 73 ]]> </screen> </para> </example> <para> Voir aussi <function>mysql_ping</function> et <function>mysql_list_processes</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
Index: phpdoc-fr/reference/mysql/functions/mysql-close.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-close.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-close.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-close.xml:1.2 Fri Feb 7 13:10:11 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-close.xml Mon Apr 28 11:44:46 2003 @@ -10,9 +10,7 @@ <title>Description</title> <methodsynopsis> <type>bool</type><methodname>mysql_close</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_close</function> ferme la connexion au serveur MySQL Index: phpdoc-fr/reference/mysql/functions/mysql-create-db.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-create-db.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-create-db.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-create-db.xml:1.2 Fri Feb 7 13:10:11 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-create-db.xml Mon Apr 28 11:44:46 2003 @@ -11,9 +11,7 @@ <methodsynopsis> <type>bool</type><methodname>mysql_create_db</methodname> <methodparam><type>string</type><parameter>database name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_create_db</function> tente de créer une nouvelle Index: phpdoc-fr/reference/mysql/functions/mysql-db-query.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-db-query.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-db-query.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-db-query.xml:1.2 Fri Feb 7 13:10:11 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-db-query.xml Mon Apr 28 11:44:46 2003 @@ -12,9 +12,7 @@ <type>resource</type><methodname>mysql_db_query</methodname> <methodparam><type>string</type><parameter>database</parameter></methodparam> <methodparam><type>string</type><parameter>query</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_db_query</function> retourne un identifiant de Index: phpdoc-fr/reference/mysql/functions/mysql-insert-id.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-insert-id.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-insert-id.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-insert-id.xml:1.2 Fri Mar 28 17:46:10 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-insert-id.xml Mon Apr 28 11:44:46 2003 @@ -13,9 +13,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>mysql_insert_id</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_insert_id</function> retourne le dernier identifiant Index: phpdoc-fr/reference/mysql/functions/mysql-list-fields.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-list-fields.xml:1.3 phpdoc-fr/reference/mysql/functions/mysql-list-fields.xml:1.4 --- phpdoc-fr/reference/mysql/functions/mysql-list-fields.xml:1.3 Fri Mar 28 17:46:10 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-list-fields.xml Mon Apr 28 11:44:46 2003 @@ -12,9 +12,7 @@ <type>resource</type><methodname>mysql_list_fields</methodname> <methodparam><type>string</type><parameter>database_name</parameter></methodparam> <methodparam><type>string</type><parameter>table_name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_list_fields</function> recherche les informations Index: phpdoc-fr/reference/mysql/functions/mysql-list-tables.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-list-tables.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-list-tables.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-list-tables.xml:1.2 Fri Feb 7 13:10:11 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-list-tables.xml Mon Apr 28 11:44:46 2003 @@ -11,9 +11,7 @@ <methodsynopsis> <type>resource</type><methodname>mysql_list_tables</methodname> <methodparam><type>string</type><parameter>database</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_list_tables</function> prend le nom d'une base de Index: phpdoc-fr/reference/mysql/functions/mysql-query.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-query.xml:1.2 phpdoc-fr/reference/mysql/functions/mysql-query.xml:1.3 --- phpdoc-fr/reference/mysql/functions/mysql-query.xml:1.2 Fri Feb 7 13:10:11 2003 +++ phpdoc-fr/reference/mysql/functions/mysql-query.xml Mon Apr 28 11:44:46 2003 @@ -12,7 +12,6 @@ <type>resource</type><methodname>mysql_query</methodname> <methodparam><type>string</type><parameter>query</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>result_mode</parameter></methodparam> </methodsynopsis> <para> <function>mysql_query</function> envoie une requête SQL à @@ -37,8 +36,9 @@ </para> </note> <para> - Seules les requêtes SQL SELECT,SHOW,EXPLAIN et DESCRIBE, - utilisée avec <function>mysql_query</function> + Seules les requêtes SQL <literal>SELECT</literal>, + <literal>SHOW</literal>, <literal>EXPLAIN</literal> et <literal>DESCRIBE</literal>, + utilisées avec <function>mysql_query</function> retourne une ressource de résultat MySQL, ou bien &false; si la requête n'a pu être exécuté correctement. Pour les autres types de requêtes SQL, <function>mysql_query</function> retourne &true; Index: phpdoc-fr/reference/mysql/functions/mysql-unbuffered-query.xml diff -u phpdoc-fr/reference/mysql/functions/mysql-unbuffered-query.xml:1.1 phpdoc-fr/reference/mysql/functions/mysql-unbuffered-query.xml:1.2 --- phpdoc-fr/reference/mysql/functions/mysql-unbuffered-query.xml:1.1 Sun Apr 14 20:34:19 2002 +++ phpdoc-fr/reference/mysql/functions/mysql-unbuffered-query.xml Mon Apr 28 11:44:46 2003 @@ -14,7 +14,6 @@ <type>resource</type><methodname>mysql_unbuffered_query</methodname> <methodparam><type>string</type><parameter>query</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>result_mode</parameter></methodparam> </methodsynopsis> <para> <function>mysql_unbuffered_query</function> envoie la requête Index: phpdoc-fr/reference/mysql/functions/mysql-client-encoding.xml +++ phpdoc-fr/reference/mysql/functions/mysql-client-encoding.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-character-set-name"> <refnamediv> <refname>mysql_client_encoding</refname> <refpurpose>Retourne le nom du jeu de caractères utilisé par le client mysql</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>mysql_client_encoding</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_client_encoding</function> retourne le nom du jeu de caractères utilisé par le client mysql, pour la connexion courante (si omise), ou pour la connexion <parameter>link_identifier</parameter>. </para> <example> <title>Exemple avec <function>mysql_client_encoding</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'utilisateur_mysql', 'mot_de_passe'); $charset = mysql_client_encoding($link); printf ("Le jeu de caractères actuel est %s.\n", $charset); ?> ]]> </programlisting> <para> L'exemple ci-dessus va afficher ceci : <screen> <![CDATA[ Le jeu de caractères actuel est latin1. ]]> </screen> </para> </example> <para> Voir aussi <function>mysql_real_escape_string</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-info.xml +++ phpdoc-fr/reference/mysql/functions/mysql-info.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-info"> <refnamediv> <refname>mysql_info</refname> <refpurpose> Lit des informations a propos de la dernière requête </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>mysql_info</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_info</function> retourne des informations détaillées sur la dernière requête exécutée sur la dernière connexion ouverte (si omise), ou sur la connexion <parameter>link_identifier</parameter>. detailed information about </para> <para> <function>mysql_info</function> retourne une chaîne avec tous les détails listés ci-dessous. Pour toutes les autres commandes, elle retourne &false;. Le format de la chaîne dépend de la commande. <example> <title>Commande utilisables avec mysql_info()</title> <programlisting role="mysql"> <![CDATA[ INSERT INTO ... SELECT ... String format: Records: 23 Duplicates: 0 Warnings: 0 INSERT INTO ... VALUES (...),(...),(...)... String format: Records: 37 Duplicates: 0 Warnings: 0 LOAD DATA INFILE ... String format: Records: 42 Deleted: 0 Skipped: 0 Warnings: 0 ALTER TABLE String format: Records: 60 Duplicates: 0 Warnings: 0 UPDATE String format: Rows matched: 65 Changed: 65 Warnings: 0 ]]> </programlisting> </example> Les nombres ci-dessus ne sont la que pour illustrer. Leur valeur s'adaptera à la situation de la requête. </para> <note> <para> <function>mysql_info</function> retourne une valeur différente de &false; pour les commandes INSERT ... VALUES uniquement si plusieurs jeux de valeurs à insérer ont été spécifiées dans la commande. </para> </note> <para> Voir aussi <function>mysql_affected_rows</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-list-processes.xml +++ phpdoc-fr/reference/mysql/functions/mysql-list-processes.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.96 --> <refentry id="function.mysql-list-processes"> <refnamediv> <refname>mysql_list_processes</refname> <refpurpose>Liste les processus MySQL</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>resource</type><methodname>mysql_list_processes</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_list_processes</function> retourne une ressource de résultat qui liste les processus courants sur le serveur. </para> <para> <example> <title>Exemple avec <function>mysql_list_processes</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $result = mysql_list_processes($link); while ($row = mysql_fetch_row($result)){ printf("%s %s %s %s %s\n", $row["Id"], $row["Host"], $row["db"], $row["Command"], $row["Time"]); } mysql_free_result ($result); ?> ]]> </programlisting> <para> L'exemple ci-dessus va afficher : <screen> <![CDATA[ 1 localhost test Processlist 0 4 localhost mysql sleep 5 ]]> </screen> </para> </example> </para> <para> Voir aussi <function>mysql_thread_id</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-ping.xml +++ phpdoc-fr/reference/mysql/functions/mysql-ping.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-ping"> <refnamediv> <refname>mysql_ping</refname> <refpurpose>Pingue le serveur, et se reconnecte au besoin</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>mysql_ping</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_ping</function> vérifie sir la connexion au serveur fonctionne. Si elle est tombée, une reconnexion automatique est effectuée. Cette fonction est utile pour les scripts qui restent inactifs durant un long moment. Ils peuvent ainsi vérifier si le serveur a fermé la connexion, pour cause d'inactivité. <function>mysql_ping</function> retourne &true; si la connexion au serveur fonctionne, et &false; sinon. </para> <para> Voir aussi <function>mysql_thread_id</function> et <function>mysql_list_processes</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-real-escape-string.xml +++ phpdoc-fr/reference/mysql/functions/mysql-real-escape-string.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-real-escape-string"> <refnamediv> <refname>mysql_real_escape_string</refname> <refpurpose> Protège les caractères spéciaux d'une commande SQL. </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>mysql_real_escape_string</methodname> <methodparam><type>string</type><parameter>unescaped_string</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_real_escape_string</function> protège les caractères spéciaux de la chaîne <parameter>unescaped_string</parameter>, en prenant en compte le jeu de caractères courant. Le résultat peut être utilisé sans problème avec la fonction <function>mysql_query</function>. </para> <note> <simpara> <function>mysql_real_escape_string</function> ne remplace ni <literal>%</literal>, ni <literal>_</literal>. </simpara> </note> <example> <title>Exemple avec <function>mysql_real_escape_string</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $item = "C'est la belle vie, n'est ce pas?"; $escaped_item = mysql_real_escape_string($item); printf ("Chaîne résultat : : %s\n", $escaped_item); ?> ]]> </programlisting> <para> L'exemple ci-dessus va afficher ceci : <screen> <![CDATA[ Chaîne résultat : C\'est la belle vie, n\'est ce pas? ]]> </screen> </para> </example> <para> Voir aussi <function>mysql_escape_string</function> et <function>mysql_character_set_name</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-stat.xml +++ phpdoc-fr/reference/mysql/functions/mysql-stat.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 --> <refentry id="function.mysql-stat"> <refnamediv> <refname>mysql_stat</refname> <refpurpose>Retourne le statut courant du serveur</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>mysql_stat</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_stat</function> retourne le statut courant du serveur. </para> <note> <para> <function>mysql_stat</function> actuellement ne retourne que le temps de fonctionnement, les threads, les requêtes, les tables ouvertes, les tables flushées, et le nombre de requêtes par secondes. Pour une liste complète des statuts du serveur, utilisez la requête SHOW STATUS. </para> </note> <para> <example> <title>Exemple <function>mysql_stat</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', "mysql_user", "mysql_password"); $status = explode(' ',mysql_stat($link)); print_r($status); ?> ]]> </programlisting> <para> L'exemple ci-dessus va afficher : <screen> <![CDATA[ Array ( [0] => Uptime: 5380 [1] => Threads: 2 [2] => Questions: 1321299 [3] => Slow queries: 0 [4] => Opens: 26 [5] => Flush tables: 1 [6] => Open tables: 17 [7] => Queries per second avg: 245.595 ) ]]> </screen> </para> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/mysql/functions/mysql-thread-id.xml +++ phpdoc-fr/reference/mysql/functions/mysql-thread-id.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 --> <refentry id="function.mysql-thread-id"> <refnamediv> <refname>mysql_thread_id</refname> <refpurpose>Retourne l'identifiant du thread courant</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>mysql_thread_id</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_thread_id</function> retourne l'identifiant du thread courant. Si la connexion est perdue et que vous vous reconnectez (avec <function>mysql_ping</function> par exemple), alors l'identifiant de thread va changer. Cela signifie que vous devez lire l'identifiant de thread, et le garder pour plus tard. Lisez le lorsque vous en avez besoin. </para> <example> <title>Exemple avec <function>mysql_thread_id</function></title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $thread_id = mysql_thread_id($link); if ($thread_id){ printf ("L'identifiant du thread courant est %d\n", $thread_id); } ?> ]]> </programlisting> <para> L'exemple ci-dessus va afficher : <screen> <![CDATA[ L'identifiant du thread courant est 73 ]]> </screen> </para> </example> <para> Voir aussi <function>mysql_ping</function> et <function>mysql_list_processes</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->