Seems to work with directories as well on my Win32 box.
![]() | ftp_mdtm说明int ftp_mdtm ( resource ftp_stream, string remote_file )ftp_mdtm() 检查指定文件的最后修改时间,并以 UNIX 时间戳的方式返回。如果发生错误,或文件不存在则返回 -1。
如果成功返回一个 UNIX 时间戳,否则返回 -1。
![]()
wseibert at hxcorp dot com
05-Nov-2004 04:55
When trying to get the modified time of a file that has spaces in it, ftp_mdtm will fail on some FTP servers. If this happens, surround the file name with quotes. | ![]() |