ftp_mdtm()

It returns the last modified time of the given file

Example

<?php

$ftpId = ftp_connect(‘ftp.phpcodez.com’);

$login_result = ftp_login($ftpId, ‘anonymous’, ‘user@phpcodez.com’);

echo date(“D M Y H i s”,ftp_mdtm($ftpId, “test.txt”));

   ftp_close($ftpId);

?>