reference/ftp/functions/ftp-size.xml
4d1c34c9b7a30cfc3a59641122c707a2812cfed7
...
...
@@ -9,7 +9,7 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>int</type><methodname>ftp_size</methodname>
12
-
<methodparam><type>resource</type><parameter>ftp</parameter></methodparam>
12
+
<methodparam><type>FTP\Connection</type><parameter>ftp</parameter></methodparam>
13
13
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
...
...
@@ -29,9 +29,7 @@
29
29
<varlistentry>
30
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
<varlistentry>
...
...
@@ -51,6 +49,24 @@
51
49
Returns the file size on success, or -1 on error.
52
50
</para>
53
51
</refsect1>
52
+

53
+
<refsect1 role="changelog">
54
+
&reftitle.changelog;
55
+
<informaltable>
56
+
<tgroup cols="2">
57
+
<thead>
58
+
<row>
59
+
<entry>&Version;</entry>
60
+
<entry>&Description;</entry>
61
+
</row>
62
+
</thead>
63
+
<tbody>
64
+
&ftp.changelog.ftp-param;
65
+
</tbody>
66
+
</tgroup>
67
+
</informaltable>
68
+
</refsect1>
69
+
54
70
<refsect1 role="examples">
55
71
&reftitle.examples;
56
72
<para>
...
...
@@ -63,13 +79,13 @@
63
79
$file = 'somefile.txt';
64
80

65
81
// set up basic connection
66
-
$conn_id = ftp_connect($ftp_server);
82
+
$ftp = ftp_connect($ftp_server);
67
83

68
84
// login with username and password
69
-
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
85
+
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
70
86

71
87
// get the size of $file
72
-
$res = ftp_size($conn_id, $file);
88
+
$res = ftp_size($ftp, $file);
73
89

74
90
if ($res != -1) {
75
91
echo "size of $file is $res bytes";
...
...
@@ -78,7 +94,7 @@ if ($res != -1) {
78
94
}
79
95

80
96
// close the connection
81
-
ftp_close($conn_id);
97
+
ftp_close($ftp);
82
98

83
99
?>
84
100
]]>
85
101