使用FTP功能检查文件的更新日期? [英] Check the update date of a file with FTP functions?
本文介绍了使用FTP功能检查文件的更新日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
然而,要下载的文件是weigth(超过50MB)。
因此,如果最后一次更新没有改变,我没有下载文件(所以,文件'toto.xml'在两台服务器上是相同的)。 p>使用FTP函数可以做到这一点吗?
解决方案
http://www.php.net/manual/en/function.ftp-mdtm.php
I need to get some files on a remote server, by ftp-get.
However, the files to download are weigth (more than 50MB).
So, I didn't download the file if the last update has not change (so, the file 'toto.xml' is the same on the two servers).
It's possible to do it with FTP functions ?
解决方案
ftp_mdtm() gets the last modified time for a remote file.
http://www.php.net/manual/en/function.ftp-mdtm.php
这篇关于使用FTP功能检查文件的更新日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文