reference/ftp/functions/ftp-cdup.xml
4d1c34c9b7a30cfc3a59641122c707a2812cfed7
...
...
@@ -9,7 +9,7 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>ftp_cdup</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
Changes to the parent directory.
...
...
@@ -20,11 +20,9 @@
20
20
<para>
21
21
<variablelist>
22
22
<varlistentry>
23
-
<term><parameter>ftp_stream</parameter></term>
23
+
<term><parameter>ftp</parameter></term>
24
24
<listitem>
25
-
<para>
26
-
The link identifier of the FTP connection.
27
-
</para>
25
+
&ftp.parameter.ftp;
28
26
</listitem>
29
27
</varlistentry>
30
28
</variablelist>
...
...
@@ -36,6 +34,24 @@
36
34
&return.success;
37
35
</para>
38
36
</refsect1>
37
+

38
+
<refsect1 role="changelog">
39
+
&reftitle.changelog;
40
+
<informaltable>
41
+
<tgroup cols="2">
42
+
<thead>
43
+
<row>
44
+
<entry>&Version;</entry>
45
+
<entry>&Description;</entry>
46
+
</row>
47
+
</thead>
48
+
<tbody>
49
+
&ftp.changelog.ftp-param;
50
+
</tbody>
51
+
</tgroup>
52
+
</informaltable>
53
+
</refsect1>
54
+
39
55
<refsect1 role="examples">
40
56
&reftitle.examples;
41
57
<para>
...
...
@@ -45,26 +61,26 @@
45
61
<![CDATA[
46
62
<?php
47
63
// set up basic connection
48
-
$conn_id = ftp_connect($ftp_server);
64
+
$ftp = ftp_connect($ftp_server);
49
65

50
66
// login with username and password
51
-
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
67
+
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
52
68

53
69
// change the current directory to html
54
-
ftp_chdir($conn_id, 'html');
70
+
ftp_chdir($ftp, 'html');
55
71

56
-
echo ftp_pwd($conn_id); // /html
72
+
echo ftp_pwd($ftp); // /html
57
73

58
74
// return to the parent directory
59
-
if (ftp_cdup($conn_id)) {
75
+
if (ftp_cdup($ftp)) {
60
76
echo "cdup successful\n";
61
77
} else {
62
78
echo "cdup not successful\n";
63
79
}
64
80

65
-
echo ftp_pwd($conn_id); // /
81
+
echo ftp_pwd($ftp); // /
66
82

67
-
ftp_close($conn_id);
83
+
ftp_close($ftp);
68
84
?>
69
85
]]>
70
86
</programlisting>
...
...
@@ -81,7 +97,6 @@ ftp_close($conn_id);
81
97
</para>
82
98
</refsect1>
83
99
</refentry>
84
-

85
100
<!-- Keep this comment at the end of the file
86
101
Local variables:
87
102
mode: sgml
88
103