cvs: phpdoc-fr /reference/ftp/functions ftp-cdup.xml ftp-chdir.xml ftp-chmod.xml ftp-connect.xml ftp-delete.xml ftp-exec.xml ftp-fget.xml ftp-fput.xml
ftp-get-option.xml ftp-get.xml ftp-login.xml ftp-mdtm.xml ftp-mkdir.xml ftp-nb-fget.xml ftp-nb-fput.xml ftp-nb-get.xml ftp-nb-put.xml ftp-nlist.xml
ftp-put.xml ftp-pwd.xml ftp-raw.xml ftp-rawlist.xml ftp-rename.xml ftp-rmdir.xml ftp-set-option.xml ftp-site.xml ftp-size.xml ftp-ssl-connect.xml
ftp-systype.xml

From: Date: Mon, 22 Sep 2003 13:25:53 +0000
Subject: cvs: phpdoc-fr /reference/ftp/functions ftp-cdup.xml ftp-chdir.xml ftp-chmod.xml ftp-connect.xml ftp-delete.xml ftp-exec.xml ftp-fget.xml ftp-fput.xml
ftp-get-option.xml ftp-get.xml ftp-login.xml ftp-mdtm.xml ftp-mkdir.xml ftp-nb-fget.xml ftp-nb-fput.xml ftp-nb-get.xml ftp-nb-put.xml ftp-nlist.xml
ftp-put.xml ftp-pwd.xml ftp-raw.xml ftp-rawlist.xml ftp-rename.xml ftp-rmdir.xml ftp-set-option.xml ftp-site.xml ftp-size.xml ftp-ssl-connect.xml
ftp-systype.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-781@lists.php.net to get a copy of this message
dams Mon Sep 22 09:25:53 2003 EDT Modified files: /phpdoc-fr/reference/ftp/functions ftp-cdup.xml ftp-chdir.xml ftp-chmod.xml ftp-connect.xml ftp-delete.xml ftp-exec.xml ftp-fget.xml ftp-fput.xml ftp-get-option.xml ftp-get.xml ftp-login.xml ftp-mdtm.xml ftp-mkdir.xml ftp-nb-fget.xml ftp-nb-fput.xml ftp-nb-get.xml ftp-nb-put.xml ftp-nlist.xml ftp-put.xml ftp-pwd.xml ftp-raw.xml ftp-rawlist.xml ftp-rename.xml ftp-rmdir.xml ftp-set-option.xml ftp-site.xml ftp-size.xml ftp-ssl-connect.xml ftp-systype.xml Log: keep up with en

Index: phpdoc-fr/reference/ftp/functions/ftp-cdup.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-cdup.xml:1.3 phpdoc-fr/reference/ftp/functions/ftp-cdup.xml:1.4 --- phpdoc-fr/reference/ftp/functions/ftp-cdup.xml:1.3 Sun May 25 18:17:36 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-cdup.xml Mon Sep 22 09:25:53 2003 @@ -9,15 +9,19 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>bool</type><methodname>ftp_cdup</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - </methodsynopsis> + <type>bool</type><methodname>ftp_cdup</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_cdup</function> change de dossier et passe au dossier parent. </para> <para> &return.success; </para> + <para> + Voir aussi + <function>ftp_chdir</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-chdir.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-chdir.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-chdir.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-chdir.xml:1.2 Thu Jan 30 08:50:57 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-chdir.xml Mon Sep 22 09:25:53 2003 @@ -4,15 +4,15 @@ <refentry id="function.ftp-chdir"> <refnamediv> <refname>ftp_chdir</refname> - <refpurpose>Change le dossier courant</refpurpose> + <refpurpose>Change le dossier FTP courant</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>bool</type><methodname>ftp_chdir</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>directory</parameter></methodparam> - </methodsynopsis> + <type>bool</type><methodname>ftp_chdir</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>directory</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_chdir</function> change le dossier courant en <parameter>directory</parameter>. @@ -20,6 +20,38 @@ <para> &return.success; </para> + <example> + <title>Exemple avec <function>ftp_chdir</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// Connexion +$conn_id = ftp_connect($ftp_server); + +// Identification par login et mot de passe +$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); + +// V&eacute;rification de la connexion +if ((!$conn_id) || (!$login_result)) { + die("La connexion FTP a &eacute;chou&eacute;!"); +} + +echo "Dossier courant : ", ftp_pwd($conn_id), "\n"; + +if (@ftp_chdir($conn_id, "somedir")) { + echo "Le dossier courant est maintenant : ", ftp_pwd($conn_id), "\n"; +} else { + echo "Impossible de changer le dossier courant.\n"; +} +?> +]]> + </programlisting> + </example> + <para> + Voir aussi + <function>ftp_cdup</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-chmod.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-chmod.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-chmod.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-chmod.xml:1.1 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-chmod.xml Mon Sep 22 09:25:53 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="function.ftp-chmod"> <refnamediv> <refname>ftp_chmod</refname> @@ -25,9 +25,9 @@ en cas de succ&egrave;s et &false; sinon. </para> <para> - Voir aussi - <function>chmod</function>. - </para> + Voir aussi + <function>chmod</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-connect.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-connect.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-connect.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-connect.xml:1.2 Thu Jan 30 08:50:57 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-connect.xml Mon Sep 22 09:25:53 2003 @@ -32,10 +32,31 @@ <function>ftp_get_option</function>. <note> <para> - Le param&egrave;tre <parameter>timeout</parameter> a &eacute;t&eacute; ajout&eacute; en &php; 4.2.0. + Le param&egrave;tre <parameter>timeout</parameter> a &eacute;t&eacute; + ajout&eacute; en &php; 4.2.0. </para> </note> </para> + <example> + <title>Exemple avec <function>ftp_connect</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$ftp_server = "ftp.exemple.com"; + +// ouvre une connexion ou &eacute;choue +$conn_id = ftp_connect($ftp_server) or die("Impossible de se connecter &agrave; $ftp_server"); + +?> +]]> + </programlisting> + </example> + <para> + Voir aussi + <function>ftp_close</function> et + <function>ftp_ssl_connect</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-delete.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-delete.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-delete.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-delete.xml:1.2 Thu Jan 30 08:50:57 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-delete.xml Mon Sep 22 09:25:53 2003 @@ -9,10 +9,10 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>bool</type><methodname>ftp_delete</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>path</parameter></methodparam> - </methodsynopsis> + <type>bool</type><methodname>ftp_delete</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>path</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_delete</function> efface le fichier <parameter>path</parameter> sur un serveur FTP. Index: phpdoc-fr/reference/ftp/functions/ftp-exec.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-exec.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-exec.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-exec.xml:1.2 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-exec.xml Mon Sep 22 09:25:53 2003 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.32 --> <refentry id="function.ftp-exec"> <refnamediv> <refname>ftp_exec</refname> - <refpurpose>Ex&eacute;cute un programme sur le serveur FTP</refpurpose> + <refpurpose>Ex&eacute;cute une commande sur le serveur FTP</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -19,6 +19,10 @@ <function>ftp_exec</function> retourne le r&eacute;sultat de la commande si elle a r&eacute;ussi, et &false; sinon. </para> + <para> + Voir aussi + <function>ftp_raw</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-fget.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-fget.xml:1.3 phpdoc-fr/reference/ftp/functions/ftp-fget.xml:1.4 --- phpdoc-fr/reference/ftp/functions/ftp-fget.xml:1.3 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-fget.xml Mon Sep 22 09:25:53 2003 @@ -27,16 +27,19 @@ </para> <note> <para> - La param&egrave;tre <parameter>resumepos</parameter> a &eacute;t&eacute; ajout&eacute; en &php; 4.3.0. + La param&egrave;tre <parameter>resumepos</parameter> a &eacute;t&eacute; + ajout&eacute; en &php; 4.3.0. </para> </note> <para> &return.success; </para> <para> - Voir aussi - <function>ftp_get</function>. - </para> + Voir aussi + <function>ftp_get</function>, + <function>ftp_nb_get</function> et + <function>ftp_nb_fget</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-fput.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-fput.xml:1.3 phpdoc-fr/reference/ftp/functions/ftp-fput.xml:1.4 --- phpdoc-fr/reference/ftp/functions/ftp-fput.xml:1.3 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-fput.xml Mon Sep 22 09:25:53 2003 @@ -4,7 +4,7 @@ <refentry id="function.ftp-fput"> <refnamediv> <refname>ftp_fput</refname> - <refpurpose>Charge un fichier ouvert sur un serveur FTP</refpurpose> + <refpurpose>Charge un fichier sur un serveur FTP</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -33,6 +33,12 @@ <para> &return.success; </para> + <para> + Voir aussi + <function>ftp_put</function>, + <function>ftp_nb_fput</function> et + <function>ftp_nb_put</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-get-option.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-get-option.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-get-option.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-get-option.xml:1.2 Thu Aug 14 10:48:53 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-get-option.xml Mon Sep 22 09:25:53 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.30 --> <refentry id="function.ftp-get-option"> <refnamediv> @@ -55,6 +55,10 @@ </programlisting> </example> </para> + <para> + Voir aussi + <function>ftp_set_option</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-get.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-get.xml:1.3 phpdoc-fr/reference/ftp/functions/ftp-get.xml:1.4 --- phpdoc-fr/reference/ftp/functions/ftp-get.xml:1.3 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-get.xml Mon Sep 22 09:25:53 2003 @@ -5,7 +5,7 @@ <refnamediv> <refname>ftp_get</refname> <refpurpose> - T&eacute;l&eacute;charge un fichier depuis un serveur FTP. + T&eacute;l&eacute;charge un fichier depuis un serveur FTP </refpurpose> </refnamediv> <refsect1> @@ -29,10 +29,11 @@ &return.success; </para> <para> - Voir aussi - <function>ftp_fget</function> et - <function>ftp_async_get</function>. - </para> + Voir aussi + <function>ftp_fget</function>, + <function>ftp_nb_get</function> et + <function>ftp_nb_fget</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-login.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-login.xml:1.3 phpdoc-fr/reference/ftp/functions/ftp-login.xml:1.4 --- phpdoc-fr/reference/ftp/functions/ftp-login.xml:1.3 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-login.xml Mon Sep 22 09:25:53 2003 @@ -4,22 +4,46 @@ <refentry id="function.ftp-login"> <refnamediv> <refname>ftp_login</refname> - <refpurpose>Authentification d'une connexion FTP</refpurpose> + <refpurpose>Identification avec une connexion FTP</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>bool</type><methodname>ftp_login</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>username</parameter></methodparam> - <methodparam><type>string</type><parameter>password</parameter></methodparam> - </methodsynopsis> + <type>bool</type><methodname>ftp_login</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>username</parameter></methodparam> + <methodparam><type>string</type><parameter>password</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_login</function> authentifie le fl&ocirc;t FTP. </para> <para> &return.success; </para> + <example> + <title>Exemple avec <function>ftp_login</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$ftp_server = "ftp.exemple.com"; +$ftp_user = "foo"; +$ftp_pass = "bar"; + +// Connexion +$conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); + +// Tentative de login +if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) { + echo "Connect&eacute; avec $ftp_user@$ftp_server\n"; +} else { + echo "Impossible de se connecter avec $ftp_user\n"; +} + +?> +]]> + </programlisting> + </example> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-mdtm.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-mdtm.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-mdtm.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-mdtm.xml:1.1 Sun Apr 14 20:28:41 2002 +++ phpdoc-fr/reference/ftp/functions/ftp-mdtm.xml Mon Sep 22 09:25:53 2003 @@ -12,10 +12,10 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>int</type><methodname>ftp_mdtm</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>remote_file</parameter></methodparam> - </methodsynopsis> + <type>int</type><methodname>ftp_mdtm</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>remote_file</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_mdtm</function> retourne un UNIX timestamp en cas de succ&egrave;s, et &false; sinon. Index: phpdoc-fr/reference/ftp/functions/ftp-mkdir.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-mkdir.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-mkdir.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-mkdir.xml:1.2 Thu Jan 30 08:50:57 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-mkdir.xml Mon Sep 22 09:25:53 2003 @@ -4,15 +4,15 @@ <refentry id="function.ftp-mkdir"> <refnamediv> <refname>ftp_mkdir</refname> - <refpurpose>Cr&eacute;e un dossier</refpurpose> + <refpurpose>Cr&eacute;e un dossier sur un serveur FTP</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>string</type><methodname>ftp_mkdir</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>directory</parameter></methodparam> - </methodsynopsis> + <type>string</type><methodname>ftp_mkdir</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>directory</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_mkdir</function> retourne le nom du dossier ainsi cr&eacute;&eacute; en cas de succ&egrave;s, et &false; sinon. @@ -21,6 +21,10 @@ <function>ftp_mkdir</function> cr&eacute;e le dossier nomm&eacute; <parameter>directory</parameter>. </para> + <para> + Voir aussi + <function>ftp_rmdir</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml:1.1 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml Mon Sep 22 09:25:53 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="function.ftp-nb-fget"> <refnamediv> <refname>ftp_nb_fget</refname> @@ -22,17 +22,20 @@ mode de transfert <parameter>mode</parameter> sp&eacute;cifi&eacute; peut &ecirc;tre <constant>FTP_ASCII</constant> ou <constant>FTP_BINARY</constant>. La diff&eacute;rence entre cette fonction et <function>ftp_fget</function> est - que cette fonction peut lire le fichier de mani&egrave;re asynchrone, de mani&egrave;re - &agrave; ce que votre programme fasse autre chose, pendant que le fichier - est t&eacute;l&eacute;charg&eacute;. + que cette fonction peut lire le fichier de mani&egrave;re asynchrone, + de mani&egrave;re &agrave; ce que votre programme fasse autre chose, + pendant que le fichier est t&eacute;l&eacute;charg&eacute;. </para> <para> &return.success; </para> <para> - Voir aussi - <function>ftp_nb_get</function>. - </para> + Voir aussi + <function>ftp_nb_get</function>, + <function>ftp_nb_continue</function>, + <function>ftp_fget</function> et + <function>ftp_get</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-nb-fput.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-nb-fput.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-nb-fput.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-nb-fput.xml:1.1 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-nb-fput.xml Mon Sep 22 09:25:53 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="function.ftp-nb-fput"> <refnamediv> <refname>ftp_nb_fput</refname> @@ -30,12 +30,12 @@ &return.success; </para> <para> - Voir aussi - <function>ftp_nb_put</function>, - <function>ftp_nb_continue</function>, - <function>ftp_put</function> et - <function>ftp_fput</function>. - </para> + Voir aussi + <function>ftp_nb_put</function>, + <function>ftp_nb_continue</function>, + <function>ftp_put</function> et + <function>ftp_fput</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml:1.1 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml Mon Sep 22 09:25:53 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="function.ftp-nb-get"> <refnamediv> <refname>ftp_nb_get</refname> @@ -105,12 +105,12 @@ 100 octets du fichier seraient compl&eacute;t&eacute;s avec <literal>'\0'</literal>. </para> <para> - Voir aussi - <function>ftp_nb_fget</function>, - <function>ftp_nb_continue</function>, - <function>ftp_get</function> et - <function>ftp_fget</function>. - </para> + Voir aussi + <function>ftp_nb_fget</function>, + <function>ftp_nb_continue</function>, + <function>ftp_get</function> et + <function>ftp_fget</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-nb-put.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-nb-put.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-nb-put.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-nb-put.xml:1.1 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-nb-put.xml Mon Sep 22 09:25:53 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="function.ftp-nb-put"> <refnamediv> <refname>ftp_nb_put</refname> @@ -78,12 +78,12 @@ </example> </para> <para> - Voir aussi - <function>ftp_nb_fput</function>, - <function>ftp_nb_continue</function>, - <function>ftp_put</function> et - <function>ftp_fput</function>. - </para> + Voir aussi + <function>ftp_nb_fput</function>, + <function>ftp_nb_continue</function>, + <function>ftp_put</function> et + <function>ftp_fput</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-nlist.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-nlist.xml:1.3 phpdoc-fr/reference/ftp/functions/ftp-nlist.xml:1.4 --- phpdoc-fr/reference/ftp/functions/ftp-nlist.xml:1.3 Mon May 12 11:26:17 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-nlist.xml Mon Sep 22 09:25:53 2003 @@ -9,14 +9,45 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>array</type><methodname>ftp_nlist</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>directory</parameter></methodparam> - </methodsynopsis> + <type>array</type><methodname>ftp_nlist</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>directory</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_nlist</function> retourne un tableau contenant les noms des fichiers en cas de succ&egrave;s, et &false; sinon. </para> + <example> + <title>Exemple avec <function>ftp_nlist</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// Connexion +$conn_id = ftp_connect($ftp_server); +$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); + +// V&eacute;rification de la connexion +if ((!$conn_id) || (!$login_result)) { + die("La connexion a &eacute;chou&eacute; !"); +} + +// Lire le contenu du dossier root +$contents = ftp_nlist($conn_id, "/"); + +// Afficher les entr&eacute;es +foreach ($contents as $entry) { + echo $entry, "<br />\n"; +} + +?> +]]> + </programlisting> + </example> + <para> + Voir aussi + <function>ftp_rawlist</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-put.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-put.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-put.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-put.xml:1.2 Thu Jan 30 08:50:57 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-put.xml Mon Sep 22 09:25:53 2003 @@ -25,7 +25,8 @@ </para> <note> <para> - Le param&egrave;tre <parameter>startpos</parameter> a &eacute;t&eacute; ajout&eacute; en &php; 4.3.0. + Le param&egrave;tre <parameter>startpos</parameter> a &eacute;t&eacute; + ajout&eacute; en &php; 4.3.0. </para> </note> <para> @@ -43,6 +44,12 @@ </programlisting> </example> </para> + <para> + Voir aussi + <function>ftp_fput</function>, + <function>ftp_nb_fput</function> et + <function>ftp_nb_put</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-pwd.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-pwd.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-pwd.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-pwd.xml:1.2 Thu Jan 30 08:50:57 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-pwd.xml Mon Sep 22 09:25:53 2003 @@ -9,9 +9,9 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>string</type><methodname>ftp_pwd</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - </methodsynopsis> + <type>string</type><methodname>ftp_pwd</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_pwd</function> retourne le nom du dossier courant, ou &false; en cas d'erreur. Index: phpdoc-fr/reference/ftp/functions/ftp-raw.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-raw.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-raw.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-raw.xml:1.1 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-raw.xml Mon Sep 22 09:25:53 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="function.ftp-raw"> <refnamediv> <refname>ftp_raw</refname> @@ -40,9 +40,9 @@ </example> </para> <para> - Voir aussi - <function>ftp_exec</function>. - </para> + Voir aussi + <function>ftp_exec</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-rawlist.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-rawlist.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-rawlist.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-rawlist.xml:1.1 Sun Apr 14 20:28:42 2002 +++ phpdoc-fr/reference/ftp/functions/ftp-rawlist.xml Mon Sep 22 09:25:53 2003 @@ -5,16 +5,16 @@ <refnamediv> <refname>ftp_rawlist</refname> <refpurpose> - Fait une liste d&eacute;taill&eacute;e de fichiers dans un dossier. + Fait une liste d&eacute;taill&eacute;e de fichiers dans un dossier </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>array</type><methodname>ftp_rawlist</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>directory</parameter></methodparam> - </methodsynopsis> + <type>array</type><methodname>ftp_rawlist</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>directory</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_rawlist</function> ex&eacute;cute la commande FTP LIST, et retourne le r&eacute;sultat dans un tableau. Chaque &eacute;l&eacute;ment @@ -24,6 +24,10 @@ <function>ftp_systype</function> sera utile pour d&eacute;terminer la fa&ccedil;on d'interpr&eacute;ter le r&eacute;sultat. </para> + <para> + Voir aussi + <function>ftp_nlist</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-rename.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-rename.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-rename.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-rename.xml:1.2 Thu Jan 30 08:50:57 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-rename.xml Mon Sep 22 09:25:53 2003 @@ -9,11 +9,11 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>bool</type><methodname>ftp_rename</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>from</parameter></methodparam> - <methodparam><type>string</type><parameter>to</parameter></methodparam> - </methodsynopsis> + <type>bool</type><methodname>ftp_rename</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>from</parameter></methodparam> + <methodparam><type>string</type><parameter>to</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_rename</function> renomme le fichier ou dossier <parameter>from</parameter> en <parameter>to</parameter>, Index: phpdoc-fr/reference/ftp/functions/ftp-rmdir.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-rmdir.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-rmdir.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-rmdir.xml:1.2 Thu Jan 30 08:50:57 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-rmdir.xml Mon Sep 22 09:25:53 2003 @@ -4,22 +4,26 @@ <refentry id="function.ftp-rmdir"> <refnamediv> <refname>ftp_rmdir</refname> - <refpurpose>Efface un dossier</refpurpose> + <refpurpose>Efface un dossier FTP</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>bool</type><methodname>ftp_rmdir</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>directory</parameter></methodparam> - </methodsynopsis> + <type>bool</type><methodname>ftp_rmdir</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>directory</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_rmdir</function> efface le dossier <parameter>directory</parameter>. </para> - <para> + <para> &return.success; - </para> + </para> + <para> + Voir aussi + <function>ftp_mkdir</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-set-option.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-set-option.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-set-option.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-set-option.xml:1.1 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-set-option.xml Mon Sep 22 09:25:53 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.32 --> <refentry id="function.ftp-set-option"> <refnamediv> @@ -14,11 +14,6 @@ <methodparam><type>int</type><parameter>option</parameter></methodparam> <methodparam><type>mixed</type><parameter>value</parameter></methodparam> </methodsynopsis> - <note> - <para> - <function>ftp_set_option</function> n'est disponible que dans le CVS. - </para> - </note> <para> <function>ftp_set_option</function> retourne &true; si l'option <parameter>option</parameter> a pu &ecirc;tre modifi&eacute;e avec la nouvelle valeur @@ -33,18 +28,19 @@ <parameter>option</parameter> choisie. Actuellement, les options suivantes sont support&eacute;es : <table> - <title>Option de connexion FTP</title> + <title>Options de connexion FTP</title> <tgroup cols="2"> <tbody> <row> - <entry>FTP_TIMEOUT_SEC</entry> + <entry><constant>FTP_TIMEOUT_SEC</constant></entry> <entry>Modifie le d&eacute;lai d'expiration pour les op&eacute;rations r&eacute;seau. <parameter>value</parameter> doit &ecirc;tre un entier positif ou null. La valeur par d&eacute;faut est de 90 secondes.</entry> </row> <row> - <entry>FTP_AUTOSEEK</entry> - <entry>Lorsque cette option est activ&eacute;e, les requ&ecirc;tes de GET et PUT + <entry><constant>FTP_AUTOSEEK</constant></entry> + <entry> + Lorsque cette option est activ&eacute;e, les requ&ecirc;tes de GET et PUT avec le param&egrave;tre <parameter>resumepos</parameter> ou <parameter>startpos</parameter> va g&eacute;n&eacute;rer un positionnement automatique du pointeur dans le fichier. C'est le comportement par d&eacute;faut. @@ -60,13 +56,18 @@ <programlisting role="php"> <![CDATA[ <?php - // modifie le d&eacute;lai d'expiration pour les op&eacute;rations r&eacute;seau &agrave; 10 secondes + // modifie le d&eacute;lai d'expiration pour les op&eacute;rations + //r&eacute;seau &agrave; 10 secondes ftp_set_option($conn_id, FTP_TIMEOUT_SEC, 10); ?> ]]> </programlisting> </example> </para> + <para> + Voir aussi + <function>ftp_get_option</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-site.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-site.xml:1.2 phpdoc-fr/reference/ftp/functions/ftp-site.xml:1.3 --- phpdoc-fr/reference/ftp/functions/ftp-site.xml:1.2 Thu Jan 30 08:50:57 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-site.xml Mon Sep 22 09:25:53 2003 @@ -9,10 +9,10 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>bool</type><methodname>ftp_site</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>cmd</parameter></methodparam> - </methodsynopsis> + <type>bool</type><methodname>ftp_site</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>cmd</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_site</function> envoie la commande <parameter>cmd</parameter> au serveur FTP. Les commandes SITE ne sont pas normalis&eacute;es, et peuvent Index: phpdoc-fr/reference/ftp/functions/ftp-size.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-size.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-size.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-size.xml:1.1 Sun Apr 14 20:28:43 2002 +++ phpdoc-fr/reference/ftp/functions/ftp-size.xml Mon Sep 22 09:25:53 2003 @@ -11,10 +11,10 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>int</type><methodname>ftp_size</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - <methodparam><type>string</type><parameter>remote_file</parameter></methodparam> - </methodsynopsis> + <type>int</type><methodname>ftp_size</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + <methodparam><type>string</type><parameter>remote_file</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_size</function> retourne la taille du fichier en cas de succ&egrave;s, et &false; sinon. @@ -24,6 +24,10 @@ Si une erreur survient, ou que le fichier n'existe pas, la valeur -1 est retourn&eacute;e. Certains serveurs FTP ne supportent pas cette fonction. </para> + <para> + Voir aussi + <function>ftp_rawlist</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-ssl-connect.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-ssl-connect.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-ssl-connect.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-ssl-connect.xml:1.1 Sun May 25 20:57:43 2003 +++ phpdoc-fr/reference/ftp/functions/ftp-ssl-connect.xml Mon Sep 22 09:25:53 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.2 --> <refentry id="function.ftp-ssl-connect"> <refnamediv> @@ -41,9 +41,9 @@ </para> </note> <para> - Voir aussi - <function>ftp_connect</function>. - </para> + Voir aussi + <function>ftp_connect</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/ftp/functions/ftp-systype.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-systype.xml:1.1 phpdoc-fr/reference/ftp/functions/ftp-systype.xml:1.2 --- phpdoc-fr/reference/ftp/functions/ftp-systype.xml:1.1 Sun Apr 14 20:28:43 2002 +++ phpdoc-fr/reference/ftp/functions/ftp-systype.xml Mon Sep 22 09:25:53 2003 @@ -11,9 +11,9 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>string</type><methodname>ftp_systype</methodname> - <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> - </methodsynopsis> + <type>string</type><methodname>ftp_systype</methodname> + <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> + </methodsynopsis> <para> <function>ftp_systype</function> retourne le type de serveur, ou &false; en cas d'erreur.
« previous php.doc.fr (#781) next »