Unix and Linux Discussions Tagged with modified |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
30,969 |
AIX |
|
|
|
2 |
3,389 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
10,467 |
UNIX and Linux Applications |
|
|
|
5 |
16,567 |
Shell Programming and Scripting |
|
|
|
7 |
8,914 |
Shell Programming and Scripting |
|
|
|
2 |
2,402 |
Shell Programming and Scripting |
|
|
|
4 |
3,188 |
Shell Programming and Scripting |
|
|
|
1 |
15,026 |
Shell Programming and Scripting |
|
|
|
4 |
5,992 |
Shell Programming and Scripting |
|
|
|
1 |
2,973 |
HP-UX |
|
|
|
2 |
4,558 |
Shell Programming and Scripting |
|
|
|
1 |
7,321 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
22,006 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
15,265 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
4,203 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
5,079 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
5,917 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
8,609 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
16,202 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
30,268 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,708 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
12,909 |
IP Networking |
|
|
|
4 |
3,898 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
11,842 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,576 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
35,547 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
40,283 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,294 |
Programming |
|
|
|
10 |
125,308 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,011 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
46,936 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,416 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,541 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,073 |
IP Networking |
|
|
|
2 |
3,295 |
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)