mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-24 17:02:18 +01:00
git diff --no-prefix b95d28e6ec86e4a71e012737d36ebdc1cf009180^ b95d28e6ec86e4a71e012737d36ebdc1cf009180 > somefile.diff and applying it using patch -p0 < somefile.diff Updated EN Revision numbers manually git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@351201 c90b9560-bf6c-de11-be94-00142212c4b1
104 lines
2.6 KiB
XML
104 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ssh2-sftp">
|
|
<refnamediv>
|
|
<refname>ssh2_sftp</refname>
|
|
<refpurpose>Initialise un sous-système SFTP</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type class="union"><type>resource</type><type>false</type></type><methodname>ssh2_sftp</methodname>
|
|
<methodparam><type>resource</type><parameter>session</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Demande un sous-système SFTP depuis un serveur déjà connecté SSH2.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>session</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Un identifiant de connexion SSH, obtenu depuis la fonction
|
|
<function>ssh2_connect</function>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Cette méthode retourne une ressource <literal>SSH2 SFTP</literal>
|
|
pour utilisation avec toutes les méthodes <literal>ssh2_sftp_*()</literal>
|
|
ainsi que le gestionnaire ouvert
|
|
<link linkend="wrappers.ssh2">ssh2.sftp://</link>,
|
|
&return.falseforfailure;.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Ouverture d'un fichier via SFTP</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$connection = ssh2_connect('shell.example.com', 22);
|
|
ssh2_auth_password($connection, 'username', 'password');
|
|
|
|
$sftp = ssh2_sftp($connection);
|
|
|
|
$stream = fopen('ssh2.sftp://' . intval($sftp) . '/path/to/file', 'r');
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>ssh2_scp_recv</function></member>
|
|
<member><function>ssh2_scp_send</function></member>
|
|
</simplelist>
|
|
</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:"~/.phpdoc/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
|
|
-->
|