PHP ftp_mdtm() Function
Complete PHP FTP Reference Manual
Definition and Usage
The ftp_mdtm() function returns the last modification time of a specified file.
Returns the last modification time of the file as a Unix timestamp, or -1 on error.
Syntax
int ftp_mdtm ( resource $ftp_stream , string $remote_file )
| Parameters | Description |
|---|---|
| ftp_connection | Required. Specifies the FTP connection to log in to. |
| file | Required. Specifies the file to check. |
Tips and Notes
**Note:** Not all FTP servers support this function.
Example
Complete PHP FTP Reference Manual