Home > PHP > Function > FTP > ftp_mdtm()

ftp_mdtm()

ftp_mdtm - Returns the last modified time of the given file

Syntax

int ftp_mdtm (resource $ftp_stream, string $remote_file)

Arguments

  • ftp_stream - The link identifier of the FTP connection.
  • remote_file - The file from which to extract the last modification time.

Description

ftp_mdtm() gets the last modified time for a remote file.

Version

PHP 4, 5

Return value

Returns the last modified time as a Unix timestamp on success, or -1 on error.