Unix and Linux Discussions Tagged with modified |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
22,148 |
AIX |
|
|
|
2 |
2,324 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
9,775 |
UNIX and Linux Applications |
|
|
|
5 |
16,140 |
Shell Programming and Scripting |
|
|
|
7 |
8,310 |
Shell Programming and Scripting |
|
|
|
2 |
2,206 |
Shell Programming and Scripting |
|
|
|
4 |
2,954 |
Shell Programming and Scripting |
|
|
|
1 |
14,767 |
Shell Programming and Scripting |
|
|
|
4 |
5,675 |
Shell Programming and Scripting |
|
|
|
1 |
2,809 |
HP-UX |
|
|
|
2 |
4,390 |
Shell Programming and Scripting |
|
|
|
1 |
6,889 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
21,237 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
14,177 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
3,933 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
4,445 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
4,862 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,739 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
15,534 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
29,168 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,392 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
11,619 |
IP Networking |
|
|
|
4 |
3,148 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
11,062 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,834 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
34,437 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
39,387 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,978 |
Programming |
|
|
|
10 |
124,298 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,609 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
46,242 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,920 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,143 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,498 |
IP Networking |
|
|
|
2 |
2,923 |
UNIX for Dummies Questions & Answers |
FTP_MDTM(3) 1 FTP_MDTM(3)
ftp_mdtm - Returns the last modified time of the given file
SYNOPSIS
int ftp_mdtm (resource $ftp_stream, string $remote_file)
DESCRIPTION
ftp_mdtm(3) gets the last modified time for a remote file.
Note
Not all servers support this feature!
Note
ftp_mdtm(3) does not work with directories.
PARAMETERS
o $ftp_stream
- The link identifier of the FTP connection.
o $remote_file
- The file from which to extract the last modification time.
RETURN VALUES
Returns the last modified time as a Unix timestamp on success, or -1 on error.
EXAMPLES
Example #1
ftp_mdtm(3) example
<?php
$file = 'somefile.txt';
// set up basic connection
$conn_id = ftp_connect($ftp_server);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// get the last modified time
$buff = ftp_mdtm($conn_id, $file);
if ($buff != -1) {
// somefile.txt was last modified on: March 26 2003 14:16:41.
echo "$file was last modified on : " . date("F d Y H:i:s.", $buff);
} else {
echo "Couldn't get mdtime";
}
// close the connection
ftp_close($conn_id);
?>
PHP Documentation Group FTP_MDTM(3)