Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP ftp_mdtm() Function

PHP ftp_mdtm() Function


PHP FTP Reference Manual 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




PHP FTP Reference Manual Complete PHP FTP Reference Manual