reference/ftp/functions/ftp-close.xml
4d1c34c9b7a30cfc3a59641122c707a2812cfed7
...
...
@@ -9,7 +9,7 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<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>
13
13
</methodsynopsis>
14
14
<para>
15
15
<function>ftp_close</function> closes the given link identifier
...
...
@@ -27,11 +27,9 @@
27
27
<para>
28
28
<variablelist>
29
29
<varlistentry>
30
-
<term><parameter>ftp_stream</parameter></term>
30
+
<term><parameter>ftp</parameter></term>
31
31
<listitem>
32
-
<para>
33
-
The link identifier of the FTP connection.
34
-
</para>
32
+
&ftp.parameter.ftp;
35
33
</listitem>
36
34
</varlistentry>
37
35
</variablelist>
...
...
@@ -43,6 +41,24 @@
43
41
&return.success;
44
42
</para>
45
43
</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
+
46
62
<refsect1 role="examples">
47
63
&reftitle.examples;
48
64
<para>
...
...
@@ -53,16 +69,16 @@
53
69
<?php
54
70

55
71
// set up basic connection
56
-
$conn_id = ftp_connect($ftp_server);
72
+
$ftp = ftp_connect($ftp_server);
57
73

58
74
// login with username and 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);
60
76

61
77
// print the current directory
62
-
echo ftp_pwd($conn_id); // /
78
+
echo ftp_pwd($ftp);
63
79

64
80
// close this connection
65
-
ftp_close($conn_id);
81
+
ftp_close($ftp);
66
82
?>
67
83
]]>
68
84
</programlisting>
...
...
@@ -78,7 +94,6 @@ ftp_close($conn_id);
78
94
</para>
79
95
</refsect1>
80
96
</refentry>
81
-

82
97
<!-- Keep this comment at the end of the file
83
98
Local variables:
84
99
mode: sgml
85
100