Check file update date using FTP functions?

I need to get some files on a remote server, ftp-get.

However, the downloaded files have a weight (more than 50 MB).

So, I did not upload the file if the last update has not changed (so the toto.xml file is the same on two servers).

Can this be done using FTP functions?

+4
source share
2 answers

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

http://www.php.net/manual/en/function.ftp-mdtm.php

+3
source
+2
source

Source: https://habr.com/ru/post/1386781/


All Articles