mirror of
https://github.com/php/doc-pt_br.git
synced 2026-03-23 22:52:12 +01:00
159 lines
4.8 KiB
XML
159 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 8bc832a464e33122e8129f5a623bd845b69fa7e0 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
|
|
|
<refentry xml:id="wrappers.ftp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false" role="stream_wrapper">
|
|
<refnamediv>
|
|
<refname>ftp://</refname>
|
|
<refname>ftps://</refname>
|
|
<refpurpose>Acessando URLs FTP(s)</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description"><!-- {{{ -->
|
|
&reftitle.description;
|
|
<para>
|
|
Permite acesso de leitura a arquivos existentes e criação de novos arquivos
|
|
via FTP. Se o servidor não suportar modo ftp passivo, a
|
|
conexão irá falhar.
|
|
</para>
|
|
<simpara>
|
|
Pode-se abrir arquivos tanto para leitura quanto para escrita, mas não para ambos
|
|
simultaneamente. Se o arquivo remoto já existe no servidor ftp
|
|
e houver tentativa de abri-lo para escrita, mas não estiver especificada
|
|
a opção de contexto <literal>overwrite</literal>, a conexão
|
|
irá falhar. Se for necessário sobrescrever os arquivos existentes via ftp,
|
|
deve-se especificar a opção <literal>overwrite</literal> no contexto
|
|
e abrir o arquivo para escrita. Alternativamente, pode ser usada
|
|
a <link linkend="ref.ftp">extensão FTP</link>.
|
|
</simpara>
|
|
<simpara>
|
|
Se estiver configurada a diretiva <link linkend="ini.from">from</link>
|
|
no &php.ini;, então este valor será enviado como a senha do
|
|
FTP anônimo.
|
|
</simpara>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="usage"> <!-- {{{ -->
|
|
&reftitle.usage;
|
|
<itemizedlist>
|
|
<listitem><simpara><filename>ftp://example.com/pub/arquivo.txt</filename></simpara></listitem>
|
|
<listitem><simpara><filename>ftp://usuario:senha@example.com/pub/arquivo.txt</filename></simpara></listitem>
|
|
<listitem><simpara><filename>ftps://example.com/pub/arquivo.txt</filename></simpara></listitem>
|
|
<listitem><simpara><filename>ftps://usuario:senha@example.com/pub/arquivo.txt</filename></simpara></listitem>
|
|
</itemizedlist>
|
|
</refsect1> <!-- }}} -->
|
|
|
|
<refsect1 role="options"><!-- {{{ -->
|
|
&reftitle.options;
|
|
<para>
|
|
<table>
|
|
<title>Sumário do Empacotador</title>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>Atributo</entry>
|
|
<entry>Suportado</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>Restrito por <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
|
|
<entry>Sim</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Permite Leitura</entry>
|
|
<entry>Sim</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Permite Escrita</entry>
|
|
<entry>Sim (arquivos novos/existentes com <parameter>overwrite</parameter>)</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Permite Adição</entry>
|
|
<entry>Sim</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Permite Leitura e Escrita Simultâneas</entry>
|
|
<entry>Não</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Suporta <function>stat</function></entry>
|
|
<entry>
|
|
Somente os elementos <function>filesize</function>, <function>filemtime</function>,
|
|
<function>filetype</function>, <function>file_exists</function>,
|
|
<function>is_file</function> e
|
|
<function>is_dir</function>.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Suporta <function>unlink</function></entry>
|
|
<entry>Sim</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Suporta <function>rename</function></entry>
|
|
<entry>Sim</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Suporta <function>mkdir</function></entry>
|
|
<entry>Sim</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Suporta <function>rmdir</function></entry>
|
|
<entry>Sim</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</refsect1> <!-- }}} -->
|
|
|
|
<refsect1 role="notes"><!-- {{{ -->
|
|
&reftitle.notes;
|
|
<note>
|
|
<para>
|
|
FTPS somente é suportado quando a extensão <link linkend="book.openssl">openssl</link>
|
|
estiver habilitada.
|
|
</para>
|
|
<simpara>
|
|
Se o servidor não suportar SSL, a conexão cairá para
|
|
um FTP comum não criptografado.
|
|
</simpara>
|
|
</note>
|
|
<note>
|
|
<title>Adição</title>
|
|
<simpara>
|
|
Arquivos podem ter conteúdo acrescentado pelo empacotador de URL <literal>ftp://</literal>.
|
|
</simpara>
|
|
</note>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="seealso"><!-- {{{ -->
|
|
&reftitle.seealso;
|
|
<simplelist>
|
|
<member><xref linkend="context.ftp" /></member>
|
|
</simplelist>
|
|
</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
|
|
-->
|
|
|