reference/ftp/functions/ftp-mdtm.xml
4d1c34c9b7a30cfc3a59641122c707a2812cfed7
...
...
@@ -9,8 +9,8 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>int</type><methodname>ftp_mdtm</methodname>
12
-
<methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam>
13
-
<methodparam><type>string</type><parameter>remote_file</parameter></methodparam>
12
+
<methodparam><type>FTP\Connection</type><parameter>ftp</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
<function>ftp_mdtm</function> gets the last modified time for a remote
...
...
@@ -32,15 +32,13 @@
32
32
<para>
33
33
<variablelist>
34
34
<varlistentry>
35
-
<term><parameter>ftp_stream</parameter></term>
35
+
<term><parameter>ftp</parameter></term>
36
36
<listitem>
37
-
<para>
38
-
The link identifier of the FTP connection.
39
-
</para>
37
+
&ftp.parameter.ftp;
40
38
</listitem>
41
39
</varlistentry>
42
40
<varlistentry>
43
-
<term><parameter>remote_file</parameter></term>
41
+
<term><parameter>filename</parameter></term>
44
42
<listitem>
45
43
<para>
46
44
The file from which to extract the last modification time.
...
...
@@ -53,10 +51,28 @@
53
51
<refsect1 role="returnvalues">
54
52
&reftitle.returnvalues;
55
53
<para>
56
-
Returns the last modified time as a Unix timestamp on success, or -1 on
54
+
Returns the last modified time as a <emphasis>local</emphasis> Unix timestamp on success, or -1 on
57
55
error.
58
56
</para>
59
57
</refsect1>
58
+

59
+
<refsect1 role="changelog">
60
+
&reftitle.changelog;
61
+
<informaltable>
62
+
<tgroup cols="2">
63
+
<thead>
64
+
<row>
65
+
<entry>&Version;</entry>
66
+
<entry>&Description;</entry>
67
+
</row>
68
+
</thead>
69
+
<tbody>
70
+
&ftp.changelog.ftp-param;
71
+
</tbody>
72
+
</tgroup>
73
+
</informaltable>
74
+
</refsect1>
75
+
60
76
<refsect1 role="examples">
61
77
&reftitle.examples;
62
78
<para>
...
...
@@ -69,13 +85,13 @@
69
85
$file = 'somefile.txt';
70
86

71
87
// set up basic connection
72
-
$conn_id = ftp_connect($ftp_server);
88
+
$ftp = ftp_connect($ftp_server);
73
89

74
90
// login with username and password
75
-
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
91
+
$login_result = ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
76
92

77
93
// get the last modified time
78
-
$buff = ftp_mdtm($conn_id, $file);
94
+
$buff = ftp_mdtm($ftp, $file);
79
95

80
96
if ($buff != -1) {
81
97
// somefile.txt was last modified on: March 26 2003 14:16:41.
...
...
@@ -85,7 +101,7 @@ if ($buff != -1) {
85
101
}
86
102

87
103
// close the connection
88
-
ftp_close($conn_id);
104
+
ftp_close($ftp);
89
105

90
106
?>
91
107
]]>
...
...
@@ -94,7 +110,6 @@ ftp_close($conn_id);
94
110
</para>
95
111
</refsect1>
96
112
</refentry>
97
-

98
113
<!-- Keep this comment at the end of the file
99
114
Local variables:
100
115
mode: sgml
101
116