cvs: peardoc /fr/package/networking/net-ftp put.xml
| From: | Christophe Gesch� | Date: | Thu, 12 Apr 2007 05:28:56 +0000 |
| Subject: | cvs: peardoc /fr/package/networking/net-ftp put.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9629@lists.php.net to get a copy of this message | ||
moosh Thu Apr 12 05:28:56 2007 UTC
Added files:
/peardoc/fr/package/networking/net-ftp put.xml
Log:
- start translation
http://cvs.php.net/viewvc.cgi/peardoc/fr/package/networking/net-ftp/put.xml?view=markup&rev=1.1
Index: peardoc/fr/package/networking/net-ftp/put.xml
+++ peardoc/fr/package/networking/net-ftp/put.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<!-- $Id: put.xml,v 1.1 2007/04/12 05:28:56 moosh Exp $ -->
<!-- EN-Revision: 1.3 Maintainer: moosh Status: started -->
<refentry id="package.networking.net-ftp.put">
<refnamediv>
<refname>Net_FTP::put()</refname>
<refpurpose>envoie un fichier sur le serveur FTP.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsisinfo>
require_once 'Net/FTP.php';
</funcsynopsisinfo>
<funcprototype>
<funcdef>mixed <function>Net_FTP::put</function></funcdef>
<paramdef>
string <parameter>$local_file</parameter>
</paramdef>
<paramdef>
string <parameter>$remote_file</parameter>
</paramdef>
<paramdef>
bool <parameter><optional>$overwrite = false</optional></parameter>
</paramdef>
<paramdef>
int <parameter><optional>$mode = null</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.networking.net-ftp.put.desc">
&title.desc;
<para>
Upload un fichier sur le serveur FTP depuis l'ordinateur
où le script est éxécuté.
</para>
</refsect1>
<refsect1 id="package.networking.net-finger.put.parameter">
&title.param;
<para>
<itemizedlist>
<listitem>
<para>
<parameter>string $local_file</parameter>
- Le fichier d'origine que vous voulez envoyer.
You can specify this with either an absolute path
or a path relative to the scripts directory.
(Beware: The script directory is determined by the called script,
if you use includes!)
</para>
</listitem>
<listitem>
<para>
<parameter>string $remote_file</parameter>
- The path (including filename) you'd like to upload to.
This could either be an absolute or relative path to a file
(not a directory! see:
<link
linkend="package.networking.net-ftp.putrecursive">Net_FTP::putRecursive()</link>).
</para>
</listitem>
<listitem>
<para>
<parameter><optional>bool $overwrite = false</optional></parameter>
- Whether to overwrite the remote file, if it exists or not.
If not set the file will not be overwritten.
</para>
</listitem>
<listitem>
<para>
<parameter>
<optional>int $mode = null</optional>
</parameter>
- This has to be one of the constants
<constant>FTP_ASCII</constant> or
<constant>FTP_BINARY</constant>.
If not specified,
the class will try to determine the mode
from the file extension
(from extensions.ini)
or fall back to the standard transfer mode (attribute).
</para>
</listitem>
</itemizedlist>
</para>
</refsect1>
<refsect1 id="package.networking.net-ftp.put.return">
&title.returns;
<para>
<parameter>mixed</parameter> - true on success, otherwise PEAR::Error.
</para>
</refsect1>
<refsect1 id="package.networking.net-ftp.put.throws">
&title.throws;
<para>
Several errors may be returned by put.
The errornumber is unspecific (until now) and will not
tell you anything about the errormessage.
Possible errors are:
</para>
<para>
<table>
<title>&title.throws.errortable;</title>
<tgroup cols="3">
<thead>
<row>
<entry>Message d'erreur</entry>
<entry>Description</entry>
<entry>Solution</entry>
</row>
</thead>
<tbody>
<row>
<entry>
Local file '$local_file' does not exist.
</entry>
<entry>
Le fichier local donné n'existe pas.
</entry>
<entry>
Corrigez le chemin du fichier.
</entry>
</row>
<row>
<entry>
Remote file '$remote_file' exists and may not be overwriten.
</entry>
<entry>
The specified remote file exists but may not be overwritten.
</entry>
<entry>
Maybe you don't have the permission to overwrite the file.
Check the filepermissions.
</entry>
</row>
<row>
<entry>
File '$local_file' could not be uploaded to '$remote_file'.
</entry>
<entry>
The upload of the local file failed.
</entry>
<entry>
This may have several reasons:
Maybe the local file does not exist or the remote
directory you wanted to upload
to does not exist or is not writeable.
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</refsect1>
<refsect1 id="package.networking.net-ftp.put.note">
&title.note;
¬e.notstatic;
</refsect1>
<refsect1 id="package.networking.net-ftp.put.example">
&title.example;
<example>
<title>Using <function>put</function></title>
<programlisting role="php">
<![CDATA[
<?php
var_dump($test->put('/tmp/telechargement.zip', 'foo/bar.zip', true,
FTP_BINARY));
?>
]]>
</programlisting>
</example>
</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
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
-->