Skip to content

Commit db2d94d

Browse files
committed
Sync FTP docs with EN
1 parent 8399348 commit db2d94d

File tree

2 files changed

+55
-25
lines changed

2 files changed

+55
-25
lines changed

reference/ftp/functions/ftp-close.xml

+26-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: cucinato Status: ready -->
2+
<!-- EN-Revision: 4d1c34c9b7a30cfc3a59641122c707a2812cfed7 Maintainer: cucinato Status: ready -->
33
<refentry xml:id="function.ftp-close" xmlns="http://docbook.org/ns/docbook">
44
<refnamediv>
55
<refname>ftp_close</refname>
@@ -9,7 +9,7 @@
99
&reftitle.description;
1010
<methodsynopsis>
1111
<type>bool</type><methodname>ftp_close</methodname>
12-
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
12+
<methodparam><type>FTP\Connection</type><parameter>ftp</parameter></methodparam>
1313
</methodsynopsis>
1414
<para>
1515
<function>ftp_close</function> chiude <parameter>ftp_stream</parameter>
@@ -27,11 +27,9 @@
2727
<para>
2828
<variablelist>
2929
<varlistentry>
30-
<term><parameter>ftp_stream</parameter></term>
30+
<term><parameter>ftp</parameter></term>
3131
<listitem>
32-
<para>
33-
L'identificatore di collegamento della connessione FTP.
34-
</para>
32+
&ftp.parameter.ftp;
3533
</listitem>
3634
</varlistentry>
3735
</variablelist>
@@ -43,6 +41,24 @@
4341
&return.success;
4442
</para>
4543
</refsect1>
44+
45+
<refsect1 role="changelog">
46+
&reftitle.changelog;
47+
<informaltable>
48+
<tgroup cols="2">
49+
<thead>
50+
<row>
51+
<entry>&Version;</entry>
52+
<entry>&Description;</entry>
53+
</row>
54+
</thead>
55+
<tbody>
56+
&ftp.changelog.ftp-param;
57+
</tbody>
58+
</tgroup>
59+
</informaltable>
60+
</refsect1>
61+
4662
<refsect1 role="examples">
4763
&reftitle.examples;
4864
<para>
@@ -53,16 +69,16 @@
5369
<?php
5470
5571
//stabilisce la connessione
56-
$conn_id = ftp_connect($ftp_server);
72+
$ftp = ftp_connect($ftp_server);
5773
5874
// si collega con nome utente e password
59-
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
75+
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
6076
6177
// stampa la directory corrente
62-
echo ftp_pwd($conn_id); // /
78+
echo ftp_pwd($ftp);
6379
6480
// chiude la connessione
65-
ftp_close($conn_id);
81+
ftp_close($ftp);
6682
?>
6783
]]>
6884
</programlisting>
@@ -78,7 +94,6 @@ ftp_close($conn_id);
7894
</para>
7995
</refsect1>
8096
</refentry>
81-
8297
<!-- Keep this comment at the end of the file
8398
Local variables:
8499
mode: sgml

reference/ftp/functions/ftp-delete.xml

+29-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: cucinato Status: ready -->
2+
<!-- EN-Revision: 4d1c34c9b7a30cfc3a59641122c707a2812cfed7 Maintainer: cucinato Status: ready -->
33
<refentry xml:id="function.ftp-delete" xmlns="http://docbook.org/ns/docbook">
44
<refnamediv>
55
<refname>ftp_delete</refname>
@@ -9,28 +9,26 @@
99
&reftitle.description;
1010
<methodsynopsis>
1111
<type>bool</type><methodname>ftp_delete</methodname>
12-
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
13-
<methodparam><type>string</type><parameter>path</parameter></methodparam>
12+
<methodparam><type>FTP\Connection</type><parameter>ftp</parameter></methodparam>
13+
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
1414
</methodsynopsis>
1515
<para>
1616
<function>ftp_delete</function> cancella il file specificato da
17-
<parameter>path</parameter> dal server FTP.
17+
<parameter>filename</parameter> dal server FTP.
1818
</para>
1919
</refsect1>
2020
<refsect1 role="parameters">
2121
&reftitle.parameters;
2222
<para>
2323
<variablelist>
2424
<varlistentry>
25-
<term><parameter>ftp_stream</parameter></term>
25+
<term><parameter>ftp</parameter></term>
2626
<listitem>
27-
<para>
28-
L'identificatore di collegamento della connessione FTP.
29-
</para>
27+
&ftp.parameter.ftp;
3028
</listitem>
3129
</varlistentry>
3230
<varlistentry>
33-
<term><parameter>path</parameter></term>
31+
<term><parameter>filename</parameter></term>
3432
<listitem>
3533
<para>
3634
Il file da cancellare.
@@ -46,6 +44,24 @@
4644
&return.success;
4745
</para>
4846
</refsect1>
47+
48+
<refsect1 role="changelog">
49+
&reftitle.changelog;
50+
<informaltable>
51+
<tgroup cols="2">
52+
<thead>
53+
<row>
54+
<entry>&Version;</entry>
55+
<entry>&Description;</entry>
56+
</row>
57+
</thead>
58+
<tbody>
59+
&ftp.changelog.ftp-param;
60+
</tbody>
61+
</tgroup>
62+
</informaltable>
63+
</refsect1>
64+
4965
<refsect1 role="examples">
5066
&reftitle.examples;
5167
<para>
@@ -57,28 +73,27 @@
5773
$file = 'public_html/old.txt';
5874
5975
// stabilisce la connessione
60-
$conn_id = ftp_connect($ftp_server);
76+
$ftp = ftp_connect($ftp_server);
6177
6278
// si collega con nome utente e password
63-
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
79+
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
6480
6581
// prova a cancellare $file
66-
if (ftp_delete($conn_id, $file)) {
82+
if (ftp_delete($ftp, $file)) {
6783
echo "$file cancellato correttamente\n";
6884
} else {
6985
echo "impossibile cancellare $file\n";
7086
}
7187
7288
// chiude la connessione
73-
ftp_close($conn_id);
89+
ftp_close($ftp);
7490
?>
7591
]]>
7692
</programlisting>
7793
</example>
7894
</para>
7995
</refsect1>
8096
</refentry>
81-
8297
<!-- Keep this comment at the end of the file
8398
Local variables:
8499
mode: sgml

0 commit comments

Comments
 (0)