reference/ftp/functions/ftp-rmdir.xml
4d1c34c9b7a30cfc3a59641122c707a2812cfed7
...
...
@@ -9,7 +9,7 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>ftp_rmdir</methodname>
12
-
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
12
+
<methodparam><type>FTP\Connection</type><parameter>ftp</parameter></methodparam>
13
13
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
...
...
@@ -21,11 +21,9 @@
21
21
<para>
22
22
<variablelist>
23
23
<varlistentry>
24
-
<term><parameter>ftp_stream</parameter></term>
24
+
<term><parameter>ftp</parameter></term>
25
25
<listitem>
26
-
<para>
27
-
The link identifier of the FTP connection.
28
-
</para>
26
+
&ftp.parameter.ftp;
29
27
</listitem>
30
28
</varlistentry>
31
29
<varlistentry>
...
...
@@ -46,6 +44,24 @@
46
44
&return.success;
47
45
</para>
48
46
</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
+
49
65
<refsect1 role="examples">
50
66
&reftitle.examples;
51
67
<para>
...
...
@@ -58,19 +74,19 @@
58
74
$dir = 'www/';
59
75

60
76
// set up basic connection
61
-
$conn_id = ftp_connect($ftp_server);
77
+
$ftp = ftp_connect($ftp_server);
62
78

63
79
// login with username and password
64
-
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
80
+
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
65
81

66
82
// try to delete the directory $dir
67
-
if (ftp_rmdir($conn_id, $dir)) {
83
+
if (ftp_rmdir($ftp, $dir)) {
68
84
echo "Successfully deleted $dir\n";
69
85
} else {
70
86
echo "There was a problem while deleting $dir\n";
71
87
}
72
88

73
-
ftp_close($conn_id);
89
+
ftp_close($ftp);
74
90

75
91
?>
76
92
]]>
...
...
@@ -87,7 +103,6 @@ ftp_close($conn_id);
87
103
</para>
88
104
</refsect1>
89
105
</refentry>
90
-

91
106
<!-- Keep this comment at the end of the file
92
107
Local variables:
93
108
mode: sgml
94
109