ftp_mdtm
PHP 4, PHP 5, PHP 7, PHP 8
ftp_mdtm - Returns the last modified time of the given file
Manual
ftp_mdtm(
FTP\Connection$ftp,
string$filename ): int
ftp_mdtm gets the last modified time for a remote file.
Note:
Not all servers support this feature!
Note:
ftp_mdtm does not work with directories.
Parameters
- ftp
-
An FTP\Connection instance.
- filename
-
The file from which to extract the last modification time.
Return Values
Returns the last modified time as a local Unix timestamp on success, or -1 on error.
Changelog
Version | Description |
8.1.0 | The ftp parameter expects an FTP\Connection instance now; previously, a resource was expected. |